From d179cdd2050b62273c146f0a42b186a9008e17ed Mon Sep 17 00:00:00 2001 From: nicolas <48695862+merklefruit@users.noreply.github.com> Date: Thu, 18 Jul 2024 10:42:46 +0200 Subject: [PATCH] chore: add debug logs --- bolt-sidecar/src/state/execution.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bolt-sidecar/src/state/execution.rs b/bolt-sidecar/src/state/execution.rs index bec286b5c..6ba0b28b9 100644 --- a/bolt-sidecar/src/state/execution.rs +++ b/bolt-sidecar/src/state/execution.rs @@ -245,6 +245,8 @@ impl ExecutionState { let max_basefee = calculate_max_basefee(self.basefee, slot_diff) .ok_or(ValidationError::MaxBaseFeeCalcOverflow)?; + tracing::debug!(%slot_diff, %max_basefee, "Validating basefee"); + // Validate the base fee if !req.validate_basefee(max_basefee) { return Err(ValidationError::BaseFeeTooLow(max_basefee)); @@ -323,6 +325,7 @@ impl ExecutionState { let max_blob_basefee = calculate_max_basefee(self.blob_basefee, slot_diff) .ok_or(ValidationError::MaxBaseFeeCalcOverflow)?; + tracing::debug!(%max_blob_basefee, blob_basefee = blob_transaction.transaction.max_fee_per_blob_gas, "Validating blob basefee"); if blob_transaction.transaction.max_fee_per_blob_gas < max_blob_basefee { return Err(ValidationError::BlobBaseFeeTooLow(max_blob_basefee)); }