mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-28 07:36:44 +00:00
fix to bootstrap POA network without restart
This commit is contained in:
parent
6dd88381de
commit
2fe91fd396
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue