-
Notifications
You must be signed in to change notification settings - Fork 277
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
core, trie, eth, cmd: rework preimage store #205
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM and we can test to decide there is no racing condition on preimage updating anymore.
@HAOYUatHZ @Thegaram when (if already) was this deployed and to which ENV? |
Not deployed. This branch contains breaking changes so we cannot easily deploy on prealpha-main. |
cherry pick ethereum@9d76a9b
This PR is to fix
preimages field's concurrent map operation
panic, and it;s fixed in ethereum/go-ethereum(PR ethereum#25287). The key point is to addRW lock
in preimage.