Skip to content

Commit

Permalink
fix: mark bundle executed after all its txs execute (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobkaufmann authored Aug 4, 2023
1 parent 43802a7 commit 9f92e75
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -543,8 +543,10 @@ fn build_on_state<S: StateProvider, I: Iterator<Item = (BundleId, BundleCompact)
total_fees += U256::from(miner_fee) * U256::from(result.gas_used());

txs.push(tx.into_signed());
bundle_ids.insert(id);
}

// add bundle to set of executed bundles
bundle_ids.insert(id);
}

// NOTE: here we assume post-shanghai
Expand Down

0 comments on commit 9f92e75

Please sign in to comment.