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

Commit

Permalink
Fix conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyera Eulberg committed Jan 5, 2023
1 parent 5658b0f commit 760d04f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 74 deletions.
51 changes: 6 additions & 45 deletions core/src/replay_stage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -398,12 +398,8 @@ impl ReplayStage {
drop_bank_sender: Sender<Vec<Arc<Bank>>>,
block_metadata_notifier: Option<BlockMetadataNotifierLock>,
log_messages_bytes_limit: Option<usize>,
<<<<<<< HEAD
) -> Self {
=======
prioritization_fee_cache: Arc<PrioritizationFeeCache>,
) -> Result<Self, String> {
>>>>>>> 8bb039d08 (collect min prioritization fees when replaying sanitized transactions (#26709))
) -> Self {
let mut tower = if let Some(process_blockstore) = maybe_process_blockstore {
let tower = process_blockstore.process_to_create_tower();
info!("Tower state: {:?}", tower);
Expand Down Expand Up @@ -536,6 +532,7 @@ impl ReplayStage {
block_metadata_notifier.clone(),
&mut replay_timing,
log_messages_bytes_limit,
&prioritization_fee_cache,
);
replay_active_banks_time.stop();

Expand Down Expand Up @@ -605,14 +602,6 @@ impl ReplayStage {
&mut heaviest_subtree_fork_choice,
&mut duplicate_slots_to_repair,
&ancestor_hashes_replay_update_sender,
<<<<<<< HEAD
=======
block_metadata_notifier.clone(),
&mut replay_timing,
log_messages_bytes_limit,
replay_slots_concurrently,
&prioritization_fee_cache,
>>>>>>> 8bb039d08 (collect min prioritization fees when replaying sanitized transactions (#26709))
);
}
process_duplicate_slots_time.stop();
Expand Down Expand Up @@ -2676,13 +2665,8 @@ impl ReplayStage {
block_metadata_notifier: Option<BlockMetadataNotifierLock>,
replay_timing: &mut ReplayTiming,
log_messages_bytes_limit: Option<usize>,
<<<<<<< HEAD
) -> bool {
=======
replay_slots_concurrently: bool,
prioritization_fee_cache: &PrioritizationFeeCache,
) -> bool /* completed a bank */ {
>>>>>>> 8bb039d08 (collect min prioritization fees when replaying sanitized transactions (#26709))
) -> bool {
let active_bank_slots = bank_forks.read().unwrap().active_bank_slots();
let num_active_banks = active_bank_slots.len();
trace!(
Expand Down Expand Up @@ -2711,6 +2695,7 @@ impl ReplayStage {
replay_timing,
log_messages_bytes_limit,
&active_bank_slots,
prioritization_fee_cache,
)
} else {
active_bank_slots
Expand All @@ -2728,6 +2713,7 @@ impl ReplayStage {
replay_timing,
log_messages_bytes_limit,
*bank_slot,
prioritization_fee_cache,
)
})
.collect()
Expand All @@ -2744,34 +2730,9 @@ impl ReplayStage {
replay_vote_sender,
replay_timing,
log_messages_bytes_limit,
<<<<<<< HEAD
active_bank_slots[0],
)]
=======
&active_bank_slots,
prioritization_fee_cache,
)
} else {
active_bank_slots
.iter()
.map(|bank_slot| {
Self::replay_active_bank(
blockstore,
bank_forks,
my_pubkey,
vote_account,
progress,
transaction_status_sender,
verify_recyclers,
replay_vote_sender,
replay_timing,
log_messages_bytes_limit,
*bank_slot,
prioritization_fee_cache,
)
})
.collect()
>>>>>>> 8bb039d08 (collect min prioritization fees when replaying sanitized transactions (#26709))
)]
};

Self::process_replay_results(
Expand Down
19 changes: 3 additions & 16 deletions core/src/tvu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,8 @@ impl Tvu {
accounts_background_request_sender: AbsRequestSender,
log_messages_bytes_limit: Option<usize>,
connection_cache: &Arc<ConnectionCache>,
<<<<<<< HEAD
) -> Self {
=======
prioritization_fee_cache: &Arc<PrioritizationFeeCache>,
) -> Result<Self, String> {
>>>>>>> 8bb039d08 (collect min prioritization fees when replaying sanitized transactions (#26709))
) -> Self {
let TvuSockets {
repair: repair_socket,
fetch: fetch_sockets,
Expand Down Expand Up @@ -293,12 +289,8 @@ impl Tvu {
drop_bank_sender,
block_metadata_notifier,
log_messages_bytes_limit,
<<<<<<< HEAD
);
=======
prioritization_fee_cache.clone(),
)?;
>>>>>>> 8bb039d08 (collect min prioritization fees when replaying sanitized transactions (#26709))
);

let ledger_cleanup_service = tvu_config.max_ledger_shreds.map(|max_ledger_shreds| {
LedgerCleanupService::new(
Expand Down Expand Up @@ -461,13 +453,8 @@ pub mod tests {
AbsRequestSender::default(),
None,
&Arc::new(ConnectionCache::default()),
<<<<<<< HEAD
);
=======
&_ignored_prioritization_fee_cache,
)
.expect("assume success");
>>>>>>> 8bb039d08 (collect min prioritization fees when replaying sanitized transactions (#26709))
);
exit.store(true, Ordering::Relaxed);
tvu.join().unwrap();
poh_service.join().unwrap();
Expand Down
11 changes: 3 additions & 8 deletions core/src/unprocessed_packet_batches.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
use {
<<<<<<< HEAD
crate::transaction_priority_details::{
GetTransactionPriorityDetails, TransactionPriorityDetails,
},
=======
crate::immutable_deserialized_packet::{DeserializedPacketError, ImmutableDeserializedPacket},
>>>>>>> 8bb039d08 (collect min prioritization fees when replaying sanitized transactions (#26709))
min_max_heap::MinMaxHeap,
solana_perf::packet::{Packet, PacketBatch},
solana_runtime::transaction_priority_details::TransactionPriorityDetails,
solana_runtime::transaction_priority_details::{
GetTransactionPriorityDetails, TransactionPriorityDetails,
},
solana_sdk::{
feature_set,
hash::Hash,
Expand Down
6 changes: 1 addition & 5 deletions core/src/validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1020,12 +1020,8 @@ impl Validator {
accounts_background_request_sender,
config.runtime_config.log_messages_bytes_limit,
&connection_cache,
<<<<<<< HEAD
);
=======
&prioritization_fee_cache,
)?;
>>>>>>> 8bb039d08 (collect min prioritization fees when replaying sanitized transactions (#26709))
);

let tpu = Tpu::new(
&cluster_info,
Expand Down

0 comments on commit 760d04f

Please sign in to comment.