eth: notify chainSyncer about new peers after handshake

This commit is contained in:
Felix Lange 2020-03-25 17:45:44 +01:00
parent b556602e48
commit c3d032d7a8

View file

@ -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)