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/fetcher: throttle tx fetches to 128KB responses #28304

Merged
merged 2 commits into from
Oct 11, 2023

Conversation

karalabe
Copy link
Member

@karalabe karalabe commented Oct 10, 2023

The transaction fetcher until now was rate limited by number of transactions requested. With the addition of announced sizes (and soon arriving blob transactions), we can now also add a throttling on the bandwidth usage. This is needed to avoid requesting too many blob transactions and starving the peer connection due to the response hogging the channel.

@karalabe karalabe added this to the 1.13.3 milestone Oct 10, 2023
Copy link
Contributor

@holiman holiman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor nit, LGTM

eth/fetcher/tx_fetcher.go Show resolved Hide resolved
eth/fetcher/tx_fetcher.go Outdated Show resolved Hide resolved
@karalabe karalabe merged commit a6deb2d into ethereum:master Oct 11, 2023
1 check passed
if _, ok := f.fetching[hash]; !ok {
// Mark the hash as fetching and stash away possible alternates
f.fetching[hash] = peer
// If the transaction is alcear fetching, skip to the next one
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alcear 👀

tyler-smith pushed a commit to blocknative/go-ethereum that referenced this pull request Oct 12, 2023
* eth/fetcher: throttle tx fetches to 128KB responses

* eth/fetcher: unindent a clause per review request
tyler-smith pushed a commit to blocknative/go-ethereum that referenced this pull request Oct 16, 2023
* eth/fetcher: throttle tx fetches to 128KB responses

* eth/fetcher: unindent a clause per review request
devopsbo3 pushed a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
* eth/fetcher: throttle tx fetches to 128KB responses

* eth/fetcher: unindent a clause per review request
devopsbo3 added a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
devopsbo3 added a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
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