mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-14 03:56:36 +00:00
Merge pull request #21032 from karalabe/skip-announce-goroutine-eth64
eth: skip transaction announcer goroutine on eth<65
This commit is contained in:
commit
b98259868b
1 changed files with 3 additions and 2 deletions
|
|
@ -720,8 +720,9 @@ func (ps *peerSet) Register(p *peer) error {
|
||||||
|
|
||||||
go p.broadcastBlocks()
|
go p.broadcastBlocks()
|
||||||
go p.broadcastTransactions()
|
go p.broadcastTransactions()
|
||||||
go p.announceTransactions()
|
if p.version >= eth65 {
|
||||||
|
go p.announceTransactions()
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue