-
Notifications
You must be signed in to change notification settings - Fork 396
feat(aggregation-mode): Bump fee when proof verification times out #2237
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
Merged
Merged
Changes from 9 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
85643d6
feat(aggregation-mode): Bump fee when proof verification times out
maximopalopoli e377dda
fix clippy lint removing unnecessary cast
maximopalopoli cc96a7e
refactor: move the gas fees update to a separate method
maximopalopoli 31807fb
Move the bump behavior config values to the proof aggregator config f…
maximopalopoli 6e99953
fix: use modified tx_req in update_gas_fees
maximopalopoli f475f08
rework the bump logic to use a linear bump instead of an exponential one
maximopalopoli c47fffa
Wrap the entire proof submission in a result to catch all errors
maximopalopoli 8bed204
fix clippy lints
maximopalopoli 01d25d6
Update the vk hash and image id at proof aggregator config file
maximopalopoli 019e4bb
change the logic to have a fixed priority fee in gwei by config
maximopalopoli 2e1dfce
handle the same nonce for the transaction on bumps
maximopalopoli c5c06c5
change the priority fee value to be a number in wei as it can be repr…
maximopalopoli c2fdc66
fix: use float values to avoid lossing presicion on operation
maximopalopoli ea3779f
fix: use the right address when obtaining the tx nonce
maximopalopoli c4914e2
also set the base fee to the tx request (gas_price field)
maximopalopoli bb309a4
fix clippy lints
maximopalopoli 5e724b3
save the signer address on init to avoid getting it from provider on …
maximopalopoli ad01ed0
Update aggregation_mode/proof_aggregator/src/backend/mod.rs
maximopalopoli c3c0b91
apply the gas fee bump in all attempts (no exceptions)
maximopalopoli d536810
Avoid updating the tx base fee on bump
maximopalopoli 72e586c
fix clippy lints
maximopalopoli ce697ca
Save the tx hash if the tx is pending and check pending ones after al…
maximopalopoli ae34d73
fix clippy lint about boxing an enum variant
maximopalopoli 5e1dac5
Get the current base fee fro the last block instead of from provider
maximopalopoli e001319
move the bump variables declaration to inside of apply_gas_fee_bump
maximopalopoli 96e69f9
Change the priority fee to 3 gwei in proof aggregator config files
maximopalopoli c0aafb2
Add a timeout for the get receipt final calls as alloy does not provi…
maximopalopoli 3db3479
Revert "Add a timeout for the get receipt final calls as alloy does n…
maximopalopoli e9454dd
fix the way comment was done in proof agg config files
maximopalopoli 7d9f380
fix fee calculation
JuArce d9f8c5b
improve fee calculation
JuArce a1434ff
fee tweaks
JuArce 996320b
fix types
JuArce 4bb5c91
check pending tx on each iteration
JuArce 4ccecf6
clippy
JuArce File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.