-
Notifications
You must be signed in to change notification settings - Fork 90
feat(l2): configure hard cap on L2 commit transactions #2532
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
Lines of code reportTotal lines added: Detailed view
|
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.
The only doubt I have is that if we are only going to use max_fee_per_gas
and max_fee_per_blob_gas
for send_tx_bump_gas_exponential_backoff
, shouldn't they be parameters of the function instead of the hole struct?
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.
Left some comments
This reverts commit 26ada98.
crates/l2/docs/sequencer.md
Outdated
|
||
- `rpc_url`: The URL for interacting with the RPC endpoint from the client. | ||
- `maximum_allowed_max_fee_per_gas`: Sets a hard cap on the maximum fee per gas you are willing to pay for a single transaction. | ||
`maximum_allowed_max_fee_per_blob_gas`: Sets a hard cap on the maximum fee per blob gas you are willing to pay for a single transaction. |
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.
Small typo here: missing the -
for maximum_allowed_max_fee_per_blob_gas
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.
Nice, edc1e92
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. Left a refactor suggestion.
Motivation
Here we want to limit the price we are willing to pay for a commitment transaction from the L2 to the L1
Description
EthClient
, (max_fee_per_gas
andmax_fee_per_blob_gas
), so we can limit if the fees are two highCloses #2498