-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(client): separate event and MMR block tracking
- Split block tracking into two separate fields: - latest_processed_events_block: for event processing - latest_processed_mmr_block: for MMR updates - Add validation to prevent block number regression - Improve logging messages to distinguish between event and MMR processing - Fix block range calculation in process_new_events - Update MMR state tracking in update_mmr method - Update related configuration and scripts The changes help prevent state regression errors and provide better visibility into the client's processing state for both events and MMR updates.
- Loading branch information
Showing
4 changed files
with
10 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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,9 +1,9 @@ | ||
{ | ||
"chain": "ethereum", | ||
"rpc_url": "http://anvil:8545", | ||
"contract_address": "0x9720a8101A706307866bd9849F9F14E823dE1F6e", | ||
"contract_address": "0x49Cf40BEe86Ab8bD080eE7918eD1d2D26DCF4c8b", | ||
"sender_address": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", | ||
"private_key": "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80", | ||
"interval": 2, | ||
"from_block": 7480941 | ||
"from_block": 7484849 | ||
} |
This file contains 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 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 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