Skip to content

Commit

Permalink
fix: use single db transaction for populating bundle state
Browse files Browse the repository at this point in the history
  • Loading branch information
Rjected committed Oct 2, 2024
1 parent 5bbfa85 commit 492f525
Show file tree
Hide file tree
Showing 5 changed files with 346 additions and 157 deletions.
3 changes: 2 additions & 1 deletion crates/blockchain-tree/src/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ impl AppendableChain {
// State root calculation can take a while, and we're sure no write transaction
// will be open in parallel. See https://github.com/paradigmxyz/reth/issues/7509.
.disable_long_read_transaction_safety()
.try_into_history_at_block(canonical_fork.number)?;
.try_into_history_at_block(canonical_fork.number)
.map_err(|(err, _)| err)?;

let provider = BundleStateProvider::new(state_provider, bundle_state_data_provider);

Expand Down
Loading

0 comments on commit 492f525

Please sign in to comment.