Skip to content
Open
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
18 changes: 6 additions & 12 deletions crates/op-rbuilder/src/builder/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,9 @@ impl OpPayloadBuilderCtx {
let base_fee = self.base_fee();

let tx_da_limit = self.da_config.max_da_tx_size();
let enable_tx_trace_logs = std::env::var("ENABLE_TX_TRACKING_DEBUG_LOGS")
.map(|v| v.eq_ignore_ascii_case("true"))
.unwrap_or(false);
let mut evm = self.evm_config.evm_with_env(&mut *db, self.evm_env.clone());

debug!(
Expand Down Expand Up @@ -452,10 +455,7 @@ impl OpPayloadBuilderCtx {
let tx_hash = tx.tx_hash();
let tx_uncompressed_size = tx.encode_2718_len() as u64;

if std::env::var("ENABLE_TX_TRACKING_DEBUG_LOGS")
.map(|v| v.eq_ignore_ascii_case("true"))
.unwrap_or(false)
{
if enable_tx_trace_logs {
debug!(
target: "tx_trace",
tx_hash = ?tx_hash,
Expand Down Expand Up @@ -576,10 +576,7 @@ impl OpPayloadBuilderCtx {
// reverted or not, as this is a check against maliciously searchers
// sending txs that are expensive to compute but always revert.
let gas_used = result.gas_used();
if std::env::var("ENABLE_TX_TRACKING_DEBUG_LOGS")
.map(|v| v.eq_ignore_ascii_case("true"))
.unwrap_or(false)
{
if enable_tx_trace_logs {
debug!(
target: "tx_trace",
tx_hash = ?tx_hash,
Expand Down Expand Up @@ -665,10 +662,7 @@ impl OpPayloadBuilderCtx {
info.executed_senders.push(tx.signer());
info.executed_transactions.push(tx.into_inner());

if std::env::var("ENABLE_TX_TRACKING_DEBUG_LOGS")
.map(|v| v.eq_ignore_ascii_case("true"))
.unwrap_or(false)
{
if enable_tx_trace_logs {
debug!(
target: "tx_trace",
tx_hash = ?target_hash,
Expand Down
Loading