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/protocols/eth: simplify peer known block/txs caches #23649

Merged
merged 4 commits into from Sep 28, 2021

Conversation

ferranbt
Copy link
Contributor

This PR adds a new set object that abstract the cache for known blocks and transactions.

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.

Lgtm aside from some minor nits

eth/protocols/eth/peer.go Outdated Show resolved Hide resolved
eth/protocols/eth/peer.go Outdated Show resolved Hide resolved
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.

Moar minor nits

eth/protocols/eth/peer.go Outdated Show resolved Hide resolved
eth/protocols/eth/peer.go Outdated Show resolved Hide resolved
eth/protocols/eth/peer.go Outdated Show resolved Hide resolved
@holiman holiman changed the title Simplify peer known block/txns cache eth/protocols/eth: simplify peer known block/txs caches Sep 28, 2021
eth/protocols/eth/peer.go Outdated Show resolved Hide resolved
@holiman holiman merged commit a541fbe into ethereum:master Sep 28, 2021
@holiman holiman added this to the 1.10.9 milestone Sep 28, 2021
sidhujag pushed a commit to syscoin/go-ethereum that referenced this pull request Sep 28, 2021
* Simplify peer known block/txns cache

* Address minor changes

* Add more minor comments

* Minor changes from review
yongjun925 pushed a commit to DODOEX/go-ethereum that referenced this pull request Dec 3, 2022
* Simplify peer known block/txns cache

* Address minor changes

* Add more minor comments

* Minor changes from review
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.

None yet

4 participants