-
Notifications
You must be signed in to change notification settings - Fork 223
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
use triedb config for reference root #1366
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.
This looks way better 🚀!
few questions to ensure we're not changing anything in functionality-wise.
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.
Please address the comment in eth/state_accessor.go
re where it's set to true
before merging. No need for me to re-review though.
Signed-off-by: Darioush Jalali <[email protected]>
Why this should be merged
This provides better alignment with upstream code, avoiding passing an extra boolean to statedb.Commit and avoids an additional triedb backend method.
Still considering whether we can avoid the concurrent use of the triedb ref. counting entirely
How this works
Removes UpdateAndReferenceRoot in favor of a triedb backend (hashdb) option that references root when Update is called.
How this was tested
CI
How is this documented
N/A