aboutsummaryrefslogtreecommitdiffstats
path: root/core/compaction-chain_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/compaction-chain_test.go')
-rw-r--r--core/compaction-chain_test.go12
1 files changed, 4 insertions, 8 deletions
diff --git a/core/compaction-chain_test.go b/core/compaction-chain_test.go
index b8f446e..6f62aa2 100644
--- a/core/compaction-chain_test.go
+++ b/core/compaction-chain_test.go
@@ -48,10 +48,8 @@ func (s *CompactionChainTestSuite) generateBlocks(
blocks := make([]*types.Block, size)
for idx := range blocks {
blocks[idx] = &types.Block{
- Hash: common.NewRandomHash(),
- Witness: types.Witness{
- Timestamp: now,
- },
+ Hash: common.NewRandomHash(),
+ ConsensusTimestamp: now,
}
now = now.Add(100 * time.Millisecond)
}
@@ -68,10 +66,8 @@ func (s *CompactionChainTestSuite) TestProcessBlock() {
blocks := make([]*types.Block, 10)
for idx := range blocks {
blocks[idx] = &types.Block{
- Hash: common.NewRandomHash(),
- Witness: types.Witness{
- Timestamp: now,
- },
+ Hash: common.NewRandomHash(),
+ ConsensusTimestamp: now,
}
now = now.Add(100 * time.Millisecond)
}