Skip to content

Commit b982598

Browse files
authored
Merge pull request #21032 from karalabe/skip-announce-goroutine-eth64
eth: skip transaction announcer goroutine on eth<65
2 parents 292570a + 34ed2d8 commit b982598

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎eth/peer.go‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -720,8 +720,9 @@ func (ps *peerSet) Register(p *peer) error {
720720

721721
go p.broadcastBlocks()
722722
go p.broadcastTransactions()
723-
go p.announceTransactions()
724-
723+
if p.version >= eth65 {
724+
go p.announceTransactions()
725+
}
725726
return nil
726727
}
727728

0 commit comments

Comments
 (0)