Skip to content

Commit

Permalink
chore: add debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
merklefruit committed Jul 18, 2024
1 parent d81c826 commit d179cdd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bolt-sidecar/src/state/execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ impl<C: StateFetcher> ExecutionState<C> {
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));
Expand Down Expand Up @@ -323,6 +325,7 @@ impl<C: StateFetcher> ExecutionState<C> {
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));
}
Expand Down

0 comments on commit d179cdd

Please sign in to comment.