-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit refactors the `event_reader_service.rs` file by introducing a new `Rollback` enum and modifying the `resync_rollback` field in the `EventsReader ` struct to use this enum. The `Rollback` enum is used to specify different types of rollbacks, including `None`, `Beginning`, and `Signature`. The `res ync_rollback` field is now of type `Arc<RwLock<Rollback>>`. Additionally, a new method `reset_last_resynced_transaction` is added to the `ResyncedTransactionsPtrStorage` trait and implemented for the `rocksdb` module . This method allows resetting the last resynced transaction for a specific program ID. These changes improve the clarity and maintainability of the codebase.
- Loading branch information
1 parent
4a014a2
commit af95f34
Showing
3 changed files
with
41 additions
and
15 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,6 +1,6 @@ | ||
[package] | ||
name = "solana-events-parser" | ||
version = "0.4.6" | ||
version = "0.5.0" | ||
authors = [ | ||
"cyphersnake <[email protected]>", | ||
"shinkarenko <[email protected]>", | ||
|
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