diff options
author | Mission Liao <mission.liao@dexon.org> | 2019-01-21 17:51:26 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-21 17:51:26 +0800 |
commit | ca43bd9f99deead21dae71a749297dc6aa361898 (patch) | |
tree | fba6074ba79f2b037b467f2f23a440e4fe764089 /integration_test/node.go | |
parent | caa9ad362b4d57bba8551be4074c86f820b7881c (diff) | |
download | dexon-consensus-ca43bd9f99deead21dae71a749297dc6aa361898.tar.gz dexon-consensus-ca43bd9f99deead21dae71a749297dc6aa361898.tar.zst dexon-consensus-ca43bd9f99deead21dae71a749297dc6aa361898.zip |
core: fix issue (#427)
* Dropped block should not be added to db
- Here "dropped" means a block is older than
current tip of that chain.
* "Acking blocks doesn't exist" should be treated
as an error when adding a block
Diffstat (limited to 'integration_test/node.go')
-rw-r--r-- | integration_test/node.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/integration_test/node.go b/integration_test/node.go index c2bb806..c5109af 100644 --- a/integration_test/node.go +++ b/integration_test/node.go @@ -254,9 +254,6 @@ func (n *Node) processBlock(b *types.Block) (events []*test.Event, err error) { } // Deliver blocks. for _, b = range delivered { - if err = n.dbModule.PutBlock(*b); err != nil { - panic(err) - } b.Finalization.Height = n.prevFinalHeight + 1 b.Finalization.ParentHash = n.prevHash n.appModule.BlockDelivered(b.Hash, b.Position, b.Finalization) |