-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Geyser: add starting entry to ReplicaEntryInfo(V2) (#33963)
* Add ReplicaEntryInfoV2 * Add starting_transaction_index field to EntryNotification * Populate starting_transaction_index in replay stage * Cache and populate starting_transaction_index in banking stage * Build ReplicaEntryInfoV2
- Loading branch information
Tyera
authored
Nov 14, 2023
1 parent
ad65c82
commit 0e91e96
Showing
6 changed files
with
56 additions
and
10 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
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
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,7 +1,13 @@ | ||
use {solana_entry::entry::EntrySummary, solana_sdk::clock::Slot, std::sync::Arc}; | ||
|
||
pub trait EntryNotifier { | ||
fn notify_entry(&self, slot: Slot, index: usize, entry: &EntrySummary); | ||
fn notify_entry( | ||
&self, | ||
slot: Slot, | ||
index: usize, | ||
entry: &EntrySummary, | ||
starting_transaction_index: usize, | ||
); | ||
} | ||
|
||
pub type EntryNotifierArc = Arc<dyn EntryNotifier + Sync + Send>; |
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