-
Notifications
You must be signed in to change notification settings - Fork 43
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
feat: prep for da oracle with cache #834
Conversation
2426caf
to
50c93d5
Compare
1156c00
to
d21dffc
Compare
// | ||
// This doesn't clear all race conditions, as the pool may need to update its state before | ||
// a UO can be valid, i.e. for replacement. | ||
let (block_hash, block_number) = self |
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 call is just moved up from the simulator into this function as the block is now needed by the prechecker as well.
Comment is there because I got burned by trying to use state.block_hash
instead and ran into this race condition.
50c93d5
to
36ee3a9
Compare
d21dffc
to
fbe95b7
Compare
- Move da oracle to its own module - Use trait object instead of enum for da oracle - Require a BlockHashOrNumber in calc_da_gas call, for use as future cache key - Clean up some usage of block_hash in codebase
fbe95b7
to
07ecc77
Compare
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
Proposed Changes