From 2fe91fd3960ec43447fe203b223b907f633f88a6 Mon Sep 17 00:00:00 2001 From: Alok Date: Wed, 31 Jan 2024 18:56:29 +0530 Subject: [PATCH] fix to bootstrap POA network without restart --- eth/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/handler.go b/eth/handler.go index a327af61131f..1a6dc38207cf 100644 --- a/eth/handler.go +++ b/eth/handler.go @@ -240,7 +240,7 @@ 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.synced.Load() { + if !h.synced.Load() && config.Sync != downloader.FullSync { log.Warn("Syncing, discarded propagated block", "number", blocks[0].Number(), "hash", blocks[0].Hash()) return 0, nil }