Skip to content

chainSyncer.handlePeerEvent

Source (upstream pre-purge) Current
File eth/sync.go sync_pow.go
Symbol chainSyncer.handlePeerEvent chainSyncer.handlePeerEvent
Ref f4d53133f~1 etc/v1.17.3-full-node

3-way merge — purge → getc ← upstream

pre-purge
// handlePeerEvent notifies the syncer about a change in the peer set.
// This is called for new peers and every time a peer announces a new
// chain head.
func (cs *chainSyncer) handlePeerEvent() bool {
select {
case cs.peerEventCh <- struct{}{}:
return true
case <-cs.handler.quitSync:
return false
}
}
core-geth validation — **Identical** ✅ | | | |---|---| | File | [`sync.go`](https://github.com/etclabscore/core-geth/blob/v1.12.20/eth/sync.go) | | Symbol | `chainSyncer.handlePeerEvent` | | Ref | `v1.12.20` |

← Sync & Downloader