Skip to content

Commit

Permalink
RPC-456 fixing issue with removing read only accounts (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitriy-helius authored Sep 11, 2024
1 parent 8445b6f commit 919d723
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/priority_fee.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ use solana_program_runtime::prioritization_fee::PrioritizationFeeDetails;
use solana_sdk::instruction::CompiledInstruction;
use solana_sdk::transaction::TransactionError;
use solana_sdk::{pubkey::Pubkey, slot_history::Slot};
use std::collections::HashMap;
use std::sync::Arc;
use std::time::{Duration, Instant};
use tokio::sync::mpsc::{channel, Receiver, Sender};
Expand Down Expand Up @@ -196,7 +195,7 @@ fn calculate_priority_fee_details(
instructions: &Vec<CompiledInstruction>,
budget: &mut ComputeBudget,
) -> Result<PrioritizationFeeDetails, TransactionError> {
let instructions_for_processing: HashMap<&Pubkey, &CompiledInstruction> = instructions
let instructions_for_processing: Vec<(&Pubkey, &CompiledInstruction)> = instructions
.iter()
.filter_map(|ix: &CompiledInstruction| {
let account = accounts.get(ix.program_id_index as usize);
Expand Down

0 comments on commit 919d723

Please sign in to comment.