aboutsummaryrefslogtreecommitdiffstats
path: root/core/lattice_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/lattice_test.go')
-rw-r--r--core/lattice_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/lattice_test.go b/core/lattice_test.go
index 603424b..5c06b92 100644
--- a/core/lattice_test.go
+++ b/core/lattice_test.go
@@ -107,9 +107,12 @@ func (s *LatticeTestSuite) newTestLatticeMgr(
// Setup governance.
gov, err := test.NewGovernance(int(cfg.NotarySetSize), cfg.LambdaBA)
req.NoError(err)
+ // Setup compaction chain.
+ cc := newCompactionChain(gov)
+ cc.init(&types.Block{})
// Setup lattice.
return &testLatticeMgr{
- ccModule: newCompactionChain(gov),
+ ccModule: cc,
app: app,
db: db,
lattice: NewLattice(