diff options
author | Mission Liao <mission.liao@dexon.org> | 2018-10-24 11:33:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-24 11:33:32 +0800 |
commit | 7df0bfd5be452d4467e7d6252ed9497ff85b613f (patch) | |
tree | 5fd3fb28e4dc4abf2cfde3287d9407369bdde806 /integration_test/node.go | |
parent | 5212bb83e8c257cfd85f9e891740369ecad36a91 (diff) | |
download | dexon-consensus-7df0bfd5be452d4467e7d6252ed9497ff85b613f.tar.gz dexon-consensus-7df0bfd5be452d4467e7d6252ed9497ff85b613f.tar.zst dexon-consensus-7df0bfd5be452d4467e7d6252ed9497ff85b613f.zip |
core: reduce calls to Application.VerifyBlock (#247)
* remove sanity check when adding blocks.
* call VerifyBlock after lattice's sanity check.
* remove checkRelation flag.
Diffstat (limited to 'integration_test/node.go')
-rw-r--r-- | integration_test/node.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/integration_test/node.go b/integration_test/node.go index b6704e8..a26c005 100644 --- a/integration_test/node.go +++ b/integration_test/node.go @@ -188,7 +188,7 @@ func (n *Node) processBlock(b *types.Block) (err error) { verified []*types.Block pendings = []*types.Block{b} ) - if err = n.lattice.SanityCheck(b, true); err != nil { + if err = n.lattice.SanityCheck(b); err != nil { if err == core.ErrAckingBlockNotExists { err = nil } |