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

Add sync chain_id to simple cache #2426

Merged
merged 2 commits into from
Apr 27, 2022

Conversation

kclowes
Copy link
Collaborator

@kclowes kclowes commented Apr 13, 2022

What was wrong?

See #2425. This is just the v6 port.

How was it fixed?

Added eth_chainId to the simple_cache_middleware. Had to take out the async _default_chain_id flow for consistency between the two modules, and will add caching for async chain_id after the simple_cache_middleware gets asyncified.

Todo:

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

kclowes added 2 commits April 13, 2022 15:04
* Add caching for sync chain_id

* Remove async chainId setter

Will add async chainId to the cache once the simple_cache_middleware is available on async

* Add docs

* Add newsfragment for simple_cache_middleware, take out old, confusing newsfragment
Copy link
Collaborator

@fselmo fselmo left a comment

Choose a reason for hiding this comment

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

lgtm once tests pass 👌

@kclowes kclowes merged commit 3e8f07c into ethereum:master Apr 27, 2022
@kclowes kclowes deleted the add-chain-id-to-simple-cache branch April 27, 2022 19:31
pacrob pushed a commit that referenced this pull request May 23, 2022
* Cache eth.chain_id in simple_cache_middleware (#2425)

* Add caching for sync chain_id

* Remove async chainId setter

Will add async chainId to the cache once the simple_cache_middleware is available on async

* Add docs

* Add newsfragment for simple_cache_middleware, take out old, confusing newsfragment
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