aboutsummaryrefslogtreecommitdiffstats
path: root/core/total-ordering-syncer.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-11-16 10:45:06 +0800
committerGitHub <noreply@github.com>2018-11-16 10:45:06 +0800
commit591c80dbe9dbdea4cec202b07f4da081020f964a (patch)
tree451cfd667943a11ddbfcd09245161a614481fb5b /core/total-ordering-syncer.go
parent02669f255e0d131c9e5fce49660103a636dddd51 (diff)
downloadtangerine-consensus-591c80dbe9dbdea4cec202b07f4da081020f964a.tar.gz
tangerine-consensus-591c80dbe9dbdea4cec202b07f4da081020f964a.tar.zst
tangerine-consensus-591c80dbe9dbdea4cec202b07f4da081020f964a.zip
core: Fix various syncing issue. (#331)
Diffstat (limited to 'core/total-ordering-syncer.go')
-rw-r--r--core/total-ordering-syncer.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/total-ordering-syncer.go b/core/total-ordering-syncer.go
index aa90a1d..1360611 100644
--- a/core/total-ordering-syncer.go
+++ b/core/total-ordering-syncer.go
@@ -156,6 +156,9 @@ func (tos *totalOrderingSyncer) processBlock(
// The finalized block should be passed by the order of consensus height.
func (tos *totalOrderingSyncer) processFinalizedBlock(block *types.Block) {
+ if tos.synced() {
+ return
+ }
tos.lock.Lock()
defer tos.lock.Unlock()
if len(tos.pendingDeliveryBlocks) > 0 {