mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
eth: notify chainSyncer about new peers after handshake
This commit is contained in:
parent
b556602e48
commit
c3d032d7a8
1 changed files with 2 additions and 0 deletions
|
|
@ -334,6 +334,8 @@ func (pm *ProtocolManager) handle(p *peer) error {
|
|||
if err := pm.downloader.RegisterPeer(p.id, p.version, p); err != nil {
|
||||
return err
|
||||
}
|
||||
pm.chainSync.handlePeerEvent(p)
|
||||
|
||||
// Propagate existing transactions. new transactions appearing
|
||||
// after this will be sent via broadcasts.
|
||||
pm.syncTransactions(p)
|
||||
|
|
|
|||
Loading…
Reference in a new issue