Add max retransmit and shred insert slot (#15475)

This commit is contained in:
sakridge
2021-02-23 13:06:33 -08:00
committed by GitHub
parent cf4e31964b
commit 1b59b163dd
10 changed files with 146 additions and 1 deletions

View File

@@ -3,6 +3,7 @@
use crate::{
bigtable_upload_service::BigTableUploadService,
cluster_info::ClusterInfo,
max_slots::MaxSlots,
optimistically_confirmed_bank_tracker::OptimisticallyConfirmedBank,
poh_recorder::PohRecorder,
rpc::*,
@@ -272,6 +273,7 @@ impl JsonRpcService {
optimistically_confirmed_bank: Arc<RwLock<OptimisticallyConfirmedBank>>,
send_transaction_retry_ms: u64,
send_transaction_leader_forward_count: u64,
max_slots: Arc<MaxSlots>,
) -> Self {
info!("rpc bound to {:?}", rpc_addr);
info!("rpc configuration: {:?}", config);
@@ -349,6 +351,7 @@ impl JsonRpcService {
bigtable_ledger_storage,
optimistically_confirmed_bank,
largest_accounts_cache,
max_slots,
);
let leader_info =
@@ -510,6 +513,7 @@ mod tests {
optimistically_confirmed_bank,
1000,
1,
Arc::new(MaxSlots::default()),
);
let thread = rpc_service.thread_hdl.thread();
assert_eq!(thread.name().unwrap(), "solana-jsonrpc");