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

@@ -74,6 +74,7 @@ func (vs *validatorStub) signVote(voteType byte, hash []byte, header types.PartS
ValidatorAddress: vs.PrivValidator.GetAddress(),
Height: vs.Height,
Round: vs.Round,
Timestamp: time.Now().UTC(),
Type: voteType,
BlockID: types.BlockID{hash, header},
}