Add default timestamp to all instances of *types.Vote

This commit is contained in:
Ethan Frey
2017-12-11 18:42:58 +01:00
parent 599673690c
commit a29c781295
6 changed files with 14 additions and 0 deletions

View File

@@ -97,6 +97,7 @@ func makeVote(header *types.Header, vals *types.ValidatorSet, key crypto.PrivKey
ValidatorIndex: idx,
Height: header.Height,
Round: 1,
Timestamp: time.Now().UTC(),
Type: types.VoteTypePrecommit,
BlockID: types.BlockID{Hash: header.Hash()},
}