-
Notifications
You must be signed in to change notification settings - Fork 266
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: add priority fees to gas settings #10763
Conversation
6922098
to
7b84c30
Compare
Changes to circuit sizes
🧾 Summary (100% most significant diffs)
Full diff report 👇
|
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.
Looks good! Just a doubt and one missing thing 🚀
@@ -20,13 +21,20 @@ export async function cancelTx( | |||
return; | |||
} | |||
|
|||
const maxFeesPerGas = new GasFees( |
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.
Do we need to also increase the max fee per gas? I'd expect only increasing priority fees for cancellation 🤔
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.
I included max fees because the gasSettings passed to this function is fetched from the previous tx. So the max fees might be tailored to only fit the previous tx's fees. But now you pointed this out, I guess a better approach is for the user to also be able to increase the max fees for this new tx. Will change it now! Thanks 😃
@@ -46,6 +47,7 @@ inline void read(uint8_t const*& it, GasSettings& gas_settings) | |||
read(it, gas_settings.gas_limits); | |||
read(it, gas_settings.teardown_gas_limits); | |||
read(it, gas_settings.max_fees_per_gas); | |||
read(it, gas_settings.max_priority_fees_per_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.
I think we also need to update fee calculation in AvmTraceBuilder::pay_fee
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.
Oh right! Didn't realise fee computation is already implemented there.
Please read contributing guidelines and remove this line.