Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eth: skip transaction announcer goroutine on eth<65 #21032

Merged
merged 1 commit into from
May 6, 2020

Conversation

karalabe
Copy link
Member

@karalabe karalabe commented May 6, 2020

Since implementing tx announcement, we've spun up a goroutine even for eth<65 peers. Whilst they are harmless, they make debugging goroutine leaks hard as they fill up the stack traces with noise. This PR just doesn't spin them up n the first place. The shutdown is fine as there's no individual tracking and the async announce sends are already properly limited to eth65+.

@karalabe karalabe added this to the 1.9.14 milestone May 6, 2020
@karalabe karalabe requested a review from holiman May 6, 2020 09:50
@karalabe karalabe requested a review from rjl493456442 as a code owner May 6, 2020 09:50
@karalabe karalabe merged commit b982598 into ethereum:master May 6, 2020
tony-ricciardi pushed a commit to tony-ricciardi/go-ethereum that referenced this pull request Jan 20, 2022
…to be blocked (ethereum#1484)

* (Cherry-pick from upstream) Merge pull request ethereum#21032 from karalabe/skip-announce-goroutine-eth64

eth: skip transaction announcer goroutine on eth<65

* Update eth65 -> celo66 in cherry-picked code

* (Cherry-pick form upstream) eth: don't block if transaction broadcast loop fails (ethereum#21255)

* eth: don't block if transaction broadcast loop is returned

* eth: kick out peer if we failed to send message

* eth: address comment

Conflicts:
	eth/peer.go

Co-authored-by: Péter Szilágyi <peterke@gmail.com>
Co-authored-by: gary rong <garyrong0905@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants