Skip to content

Commit

Permalink
fix to bootstrap POA network without restart
Browse files Browse the repository at this point in the history
  • Loading branch information
Alok committed Jan 31, 2024
1 parent 6dd8838 commit 2fe91fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 2fe91fd

Please sign in to comment.