Skip to content

Commit

Permalink
remove accounts-db dependency from SVM crate
Browse files Browse the repository at this point in the history
  • Loading branch information
pgarg66 committed Nov 6, 2024
1 parent 3bca862 commit bd43066
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

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

1 change: 0 additions & 1 deletion svm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ serde_derive = { workspace = true }
serde_json = { workspace = true }
shuttle = { workspace = true }
solana-account-decoder = { workspace = true }
solana-accounts-db = { workspace = true }
solana-bpf-loader-program = { workspace = true }
solana-client = { workspace = true }
solana-compute-budget-program = { workspace = true }
Expand Down
4 changes: 0 additions & 4 deletions svm/examples/json-rpc/server/src/rpc_process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ use {
parse_token::{get_token_account_mint, is_known_spl_token_id},
UiAccount, UiAccountEncoding, UiDataSliceConfig, MAX_BASE58_BYTES,
},
solana_accounts_db::blockhash_queue::BlockhashQueue,
solana_compute_budget::compute_budget::ComputeBudget,
solana_perf::packet::PACKET_DATA_SIZE,
solana_program_runtime::loaded_programs::ProgramCacheEntry,
Expand Down Expand Up @@ -400,7 +399,6 @@ impl JsonRpcRequestProcessor {
error_counters: &mut TransactionErrorMetrics,
) -> Vec<TransactionCheckResult> {
let last_blockhash = Hash::default();
let blockhash_queue = BlockhashQueue::default();
let next_durable_nonce = DurableNonce::from_blockhash(&last_blockhash);

sanitized_txs
Expand All @@ -411,7 +409,6 @@ impl JsonRpcRequestProcessor {
tx.borrow(),
max_age,
&next_durable_nonce,
&blockhash_queue,
error_counters,
),
Err(e) => Err(e.clone()),
Expand All @@ -424,7 +421,6 @@ impl JsonRpcRequestProcessor {
_tx: &SanitizedTransaction,
_max_age: usize,
_next_durable_nonce: &DurableNonce,
_hash_queue: &BlockhashQueue,
_error_counters: &mut TransactionErrorMetrics,
) -> TransactionCheckResult {
/* for now just return defaults */
Expand Down

0 comments on commit bd43066

Please sign in to comment.