Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit c74df83

Browse files
authored
Add structure to collect and coalesce vote packets (#27558)
* Add structure to collect and coalesce vote packets Will be used in banking stage to throw out extraneous vote packets before processing * pr comments * Update inner lock to arc to improve performance
1 parent e6687b8 commit c74df83

File tree

7 files changed

+728
-3
lines changed

7 files changed

+728
-3
lines changed

core/src/forward_packet_batches_by_accounts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ impl ForwardBatch {
9999
pub struct ForwardPacketBatchesByAccounts {
100100
// Need a `bank` to load all accounts for VersionedTransaction. Currently
101101
// using current rooted bank for it.
102-
current_bank: Arc<Bank>,
102+
pub(crate) current_bank: Arc<Bank>,
103103
// Forwardable packets are staged in number of batches, each batch is limited
104104
// by cost_tracker on both account limit and block limits. Those limits are
105105
// set as `limit_ratio` of regular block limits to facilitate quicker iteration.

core/src/immutable_deserialized_packet.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ pub enum DeserializedPacketError {
2828
SanitizeError(#[from] SanitizeError),
2929
#[error("transaction failed prioritization")]
3030
PrioritizationFailure,
31+
#[error("vote transaction failure")]
32+
VoteTransactionError,
3133
}
3234

3335
#[derive(Debug, PartialEq, Eq)]

0 commit comments

Comments
 (0)