diff options
Diffstat (limited to 'core/crypto_test.go')
-rw-r--r-- | core/crypto_test.go | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/core/crypto_test.go b/core/crypto_test.go index 1fdc802..dabcb21 100644 --- a/core/crypto_test.go +++ b/core/crypto_test.go @@ -40,12 +40,10 @@ func (s *CryptoTestSuite) prepareBlock(prevBlock *types.Block) *types.Block { now := time.Now().UTC() if prevBlock == nil { return &types.Block{ - Acks: common.NewSortedHashes(acks), - Timestamp: now, - Witness: types.Witness{ - Timestamp: time.Now(), - Height: 0, - }, + Acks: common.NewSortedHashes(acks), + Timestamp: now, + ConsensusTimestamp: time.Now(), + ConsensusHeight: 0, } } s.Require().NotEqual(prevBlock.Hash, common.Hash{}) @@ -56,10 +54,8 @@ func (s *CryptoTestSuite) prepareBlock(prevBlock *types.Block) *types.Block { Position: types.Position{ Height: prevBlock.Position.Height + 1, }, - Witness: types.Witness{ - Timestamp: time.Now(), - Height: prevBlock.Witness.Height + 1, - }, + ConsensusTimestamp: time.Now(), + ConsensusHeight: prevBlock.ConsensusHeight + 1, } } |