-
Notifications
You must be signed in to change notification settings - Fork 0
refactor: encapsulate prep and bump logic #107
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
Conversation
56cb4d0
to
628ae83
Compare
491b9cd
to
0d88be1
Compare
628ae83
to
b5082b8
Compare
4f0445e
to
ecc8355
Compare
|
||
let blob_basefee = prev_header | ||
.next_block_blob_fee(BlobParams::prague()) | ||
.expect("signet deployed after 4844 active"); |
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.
So, this expect
was panicking at runtime. I updated it to an unwrap_or
and it defaults to the Prague value, but I'm not sure why it was panicking.
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.
Tested and working in dev-net with the commits that patch the expect
issue. Approving to unblock.
3265307
to
da4dd57
Compare
f6fb01d
to
7e925ff
Compare
d02b77e
to
244f70d
Compare
da4dd57
to
e1f2221
Compare
244f70d
to
c3d8590
Compare
ControlFlow::Retry => { | ||
// bump the req | ||
req = bumpable.bumped(); | ||
if bumpable.bump_count() > retry_limit { |
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 comparison means that we send a TX at most 1 + RETRY_LIMIT
times. Usually retries include the first time a tx is sent, but i'm fine with it not being included.
Encapsulate logic for the following processes:
So that they are out of the main retrying loop
Closes ENG-1084