aboutsummaryrefslogtreecommitdiffstats
path: root/integration_test
diff options
context:
space:
mode:
authorMission Liao <mission.liao@dexon.org>2018-10-24 11:33:32 +0800
committerGitHub <noreply@github.com>2018-10-24 11:33:32 +0800
commit7df0bfd5be452d4467e7d6252ed9497ff85b613f (patch)
tree5fd3fb28e4dc4abf2cfde3287d9407369bdde806 /integration_test
parent5212bb83e8c257cfd85f9e891740369ecad36a91 (diff)
downloadtangerine-consensus-7df0bfd5be452d4467e7d6252ed9497ff85b613f.tar
tangerine-consensus-7df0bfd5be452d4467e7d6252ed9497ff85b613f.tar.gz
tangerine-consensus-7df0bfd5be452d4467e7d6252ed9497ff85b613f.tar.bz2
tangerine-consensus-7df0bfd5be452d4467e7d6252ed9497ff85b613f.tar.lz
tangerine-consensus-7df0bfd5be452d4467e7d6252ed9497ff85b613f.tar.xz
tangerine-consensus-7df0bfd5be452d4467e7d6252ed9497ff85b613f.tar.zst
tangerine-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')
-rw-r--r--integration_test/node.go2
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
}