Skip to content

Commit 2fe91fd

Browse files
author
Alok
committed
fix to bootstrap POA network without restart
1 parent 6dd8838 commit 2fe91fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eth/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ func newHandler(config *handlerConfig) (*handler, error) {
240240
// accept each others' blocks until a restart. Unfortunately we haven't figured
241241
// out a way yet where nodes can decide unilaterally whether the network is new
242242
// or not. This should be fixed if we figure out a solution.
243-
if !h.synced.Load() {
243+
if !h.synced.Load() && config.Sync != downloader.FullSync {
244244
log.Warn("Syncing, discarded propagated block", "number", blocks[0].Number(), "hash", blocks[0].Hash())
245245
return 0, nil
246246
}

0 commit comments

Comments
 (0)