diff options
Diffstat (limited to 'core/crypto_test.go')
-rw-r--r-- | core/crypto_test.go | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/core/crypto_test.go b/core/crypto_test.go index bbedeaf..b0161d9 100644 --- a/core/crypto_test.go +++ b/core/crypto_test.go @@ -40,10 +40,12 @@ 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, - ConsensusTimestamp: time.Now(), - ConsensusHeight: 0, + Acks: common.NewSortedHashes(acks), + Timestamp: now, + Finalization: types.FinalizationResult{ + Timestamp: time.Now(), + Height: 0, + }, } } s.Require().NotEqual(prevBlock.Hash, common.Hash{}) @@ -54,8 +56,10 @@ func (s *CryptoTestSuite) prepareBlock(prevBlock *types.Block) *types.Block { Position: types.Position{ Height: prevBlock.Position.Height + 1, }, - ConsensusTimestamp: time.Now(), - ConsensusHeight: prevBlock.ConsensusHeight + 1, + Finalization: types.FinalizationResult{ + Timestamp: time.Now(), + Height: prevBlock.Finalization.Height + 1, + }, } } |