aboutsummaryrefslogtreecommitdiffstats
path: root/core/consensus.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-11-13 22:05:53 +0800
committerGitHub <noreply@github.com>2018-11-13 22:05:53 +0800
commit8235b63d44026fb224813b17e132db20412cb2a1 (patch)
tree5135d12146ab743f09cc3e267822b39ed763cb45 /core/consensus.go
parent01642721a7768218e7f9a5be8f0829eb8ae7c7b1 (diff)
downloadtangerine-consensus-8235b63d44026fb224813b17e132db20412cb2a1.tar
tangerine-consensus-8235b63d44026fb224813b17e132db20412cb2a1.tar.gz
tangerine-consensus-8235b63d44026fb224813b17e132db20412cb2a1.tar.bz2
tangerine-consensus-8235b63d44026fb224813b17e132db20412cb2a1.tar.lz
tangerine-consensus-8235b63d44026fb224813b17e132db20412cb2a1.tar.xz
tangerine-consensus-8235b63d44026fb224813b17e132db20412cb2a1.tar.zst
tangerine-consensus-8235b63d44026fb224813b17e132db20412cb2a1.zip
core: Integrate totalOrdering syncer (#322)
Diffstat (limited to 'core/consensus.go')
-rw-r--r--core/consensus.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/consensus.go b/core/consensus.go
index 3d46c5c..69131e6 100644
--- a/core/consensus.go
+++ b/core/consensus.go
@@ -284,6 +284,7 @@ type Consensus struct {
// Dexon consensus v1's modules.
lattice *Lattice
ccModule *compactionChain
+ toSyncer *totalOrderingSyncer
// Interfaces.
db blockdb.BlockDatabase
@@ -1066,6 +1067,7 @@ func (con *Consensus) processFinalizedBlock(block *types.Block) (err error) {
}
err = nil
}
+ con.lattice.ProcessFinalizedBlock(b)
con.deliverBlock(b)
}
}