From 281a704544d2efa2d1acc2421910ef2182b52efb Mon Sep 17 00:00:00 2001 From: Gary Rong Date: Wed, 27 Sep 2023 16:41:13 +0800 Subject: [PATCH] eth: use synced flag --- eth/handler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eth/handler.go b/eth/handler.go index 832d035cf6..59040442e4 100644 --- a/eth/handler.go +++ b/eth/handler.go @@ -237,8 +237,8 @@ func newHandler(config *handlerConfig) (*handler, error) { // accept each others' blocks until a restart. Unfortunately we haven't figured // out a way yet where nodes can decide unilaterally whether the network is new // or not. This should be fixed if we figure out a solution. - if h.snapSync.Load() { - log.Warn("Snap syncing, discarded propagated block", "number", blocks[0].Number(), "hash", blocks[0].Hash()) + if !h.synced.Load() { + log.Warn("Syncing, discarded propagated block", "number", blocks[0].Number(), "hash", blocks[0].Hash()) return 0, nil } if h.merger.TDDReached() {