-
Notifications
You must be signed in to change notification settings - Fork 396
feat(aggregation_mode): save last processed block in a file #1872
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
JuArce
merged 23 commits into
staging
from
1870-refactoraggregation_mode-save-last-processed-block-in-a-file
Apr 15, 2025
Merged
Changes from 14 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
ea87e44
Feat use last processed block
Mechanix97 9b941f6
Feat truncate config file
Mechanix97 1ca9c4e
Add save config on proof_aggregator start
Mechanix97 7b35243
Add error case
Mechanix97 3c3b0d4
Fix last_processed_block config mock
Mechanix97 c908d6b
cargo fmt
Mechanix97 d402179
Fix new way to save last block
Mechanix97 844cf1e
Add defaul value when file dont exist
Mechanix97 9db5a35
fix last_processed_value
Mechanix97 07eb121
FIX config
Mechanix97 b8a3ada
cargo fmt
Mechanix97 3647e40
Run cargo clippy
Mechanix97 0422f7a
Run cargo clippy
Mechanix97 b90c480
Merge branch '1870-refactoraggregation_mode-save-last-processed-block…
Mechanix97 4bda531
Merge branch 'staging' into 1870-refactoraggregation_mode-save-last-p…
Mechanix97 b408650
Add last_processed_block to gitignore
Mechanix97 f14c8f7
Fix new error type added
Mechanix97 b949475
cargo fmt
Mechanix97 25f96b3
change last_aggregated_block
Mechanix97 fb63457
Remove default case and return error instead
Mechanix97 0f25608
Fix viariable names outdated
Mechanix97 116d20a
Delete config-files/proof-aggregator.last_processed_block.json
Mechanix97 746ce80
Create proof-aggregator.last_aggregated_block.json
Mechanix97 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,9 @@ | ||
| aligned_service_manager_address: "0x851356ae760d987E095750cCeb3bC6014560891C" | ||
| proof_aggregation_service_address: "0xB0D4afd8879eD9F52b28595d31B441D079B2Ca07" | ||
| eth_rpc_url: "http://localhost:8545" | ||
| eth_ws_url: "ws://localhost:8545" | ||
| eth_rpc_url: http://localhost:8545 | ||
| eth_ws_url: ws://localhost:8545 | ||
| max_proofs_in_queue: 1000 | ||
| # How far in the past should the service go to fetch batch logs | ||
| fetch_logs_from_secs_ago: 86400 # 24hs | ||
| # Anvil start with block time is 7 seconds | ||
| block_time_secs: 7 | ||
|
|
||
| proof_aggregation_service_address: 0xB0D4afd8879eD9F52b28595d31B441D079B2Ca07 | ||
| aligned_service_manager_address: 0x851356ae760d987E095750cCeb3bC6014560891C | ||
| last_processed_block_filepath: config-files/proof-aggregator.last_processed_block.json | ||
| ecdsa: | ||
| private_key_store_path: "config-files/anvil.proof-aggregator.ecdsa.key.json" | ||
| private_key_store_password: "" | ||
| private_key_store_path: config-files/anvil.proof-aggregator.ecdsa.key.json | ||
| private_key_store_password: '' |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {"last_processed_block":0} |
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.
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.
Idem the other suggestion
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.
fixed