Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.
Merged
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
16 changes: 9 additions & 7 deletions ledger/src/blockstore_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,14 +320,16 @@ fn execute_batches(
timings: &mut ExecuteTimings,
cost_capacity_meter: Arc<RwLock<BlockCostCapacityMeter>>,
) -> Result<()> {
let lock_results = batches
let (lock_results, sanitized_txs): (Vec<_>, Vec<_>) = batches
.iter()
.flat_map(|batch| batch.lock_results().clone())
.collect::<Vec<_>>();
let sanitized_txs = batches
.iter()
.flat_map(|batch| batch.sanitized_transactions().to_vec())
.collect::<Vec<_>>();
.flat_map(|batch| {
batch
.lock_results()
.iter()
.cloned()
.zip(batch.sanitized_transactions().to_vec())
})
.unzip();

let cost_model = CostModel::new();
let mut minimal_tx_cost = u64::MAX;
Expand Down