Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(rpc): add exclusive backoff for signature fetch #393

Merged
merged 1 commit into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 91 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions backfill_rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ plerkle_serialization = { workspace = true }
flatbuffers = { workspace = true }
tracing = { workspace = true }
usecase = { path = "../usecase" }
tokio-retry = { workspace = true }

[features]
rpc_tests = []

[dev-dependencies]
serde_json = { workspace = true }
warp = "0.3.7"
4 changes: 2 additions & 2 deletions backfill_rpc/src/block_producer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use solana_transaction_status::{TransactionDetails, UiConfirmedBlock};
use tracing::error;
use usecase::bigtable::is_bubblegum_transaction_encoded;

use crate::rpc::{BackfillRPC, GET_TX_RETRIES};
use crate::rpc::{BackfillRPC, MAX_RPC_RETRIES};

const SECONDS_TO_RETRY_GET_BLOCK: u64 = 5;

Expand All @@ -19,7 +19,7 @@ impl BlockProducer for BackfillRPC {
slot: u64,
_backup_provider: Option<Arc<impl BlockProducer>>,
) -> Result<UiConfirmedBlock, StorageError> {
let mut counter = GET_TX_RETRIES;
let mut counter = MAX_RPC_RETRIES;

loop {
let mut encoded_block = match self
Expand Down
Loading
Loading