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 bf65684..1270a3c 100644
--- a/core/lattice_test.go
+++ b/core/lattice_test.go
@@ -75,11 +75,14 @@ func (mgr *testLatticeMgr) processBlock(b *types.Block) (err error) {
if err = mgr.ccModule.processBlock(b); err != nil {
return
}
- if err = mgr.db.Update(*b); err != nil {
+ if err = mgr.db.Put(*b); err != nil {
return
}
mgr.app.BlockDelivered(*b)
}
+ if err = mgr.lattice.PurgeBlocks(delivered); err != nil {
+ return
+ }
// Update pending blocks for verified block (pass sanity check).
pendings = append(pendings, verified...)
}