Skip to content

Commit

Permalink
chore: only check for better payload if tx_pool (#12097)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Oct 26, 2024
1 parent ab07fcf commit 923f4ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/optimism/payload/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,8 @@ where
}
}

// check if we have a better block
if !is_better_payload(best_payload.as_ref(), total_fees) {
// check if we have a better block, but only if we included transactions from the pool
if !attributes.no_tx_pool && !is_better_payload(best_payload.as_ref(), total_fees) {
// can skip building the block
return Ok(BuildOutcome::Aborted { fees: total_fees, cached_reads })
}
Expand Down

0 comments on commit 923f4ff

Please sign in to comment.