diff options
Diffstat (limited to 'core/crypto_test.go')
-rw-r--r-- | core/crypto_test.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/core/crypto_test.go b/core/crypto_test.go index 4fa0e1b..29a45f6 100644 --- a/core/crypto_test.go +++ b/core/crypto_test.go @@ -36,12 +36,11 @@ var myVID = types.ValidatorID{Hash: common.NewRandomHash()} func (s *CryptoTestSuite) prepareBlock(prevBlock *types.Block) *types.Block { acks := make(map[common.Hash]struct{}) - timestamps := make(map[types.ValidatorID]time.Time) - timestamps[myVID] = time.Now().UTC() + now := time.Now().UTC() if prevBlock == nil { return &types.Block{ - Acks: acks, - Timestamps: timestamps, + Acks: acks, + Timestamp: now, Notary: types.Notary{ Timestamp: time.Now(), Height: 0, @@ -55,7 +54,7 @@ func (s *CryptoTestSuite) prepareBlock(prevBlock *types.Block) *types.Block { return &types.Block{ ParentHash: prevBlock.Hash, Acks: acks, - Timestamps: timestamps, + Timestamp: now, Position: types.Position{ Height: prevBlock.Position.Height + 1, }, |