Skip to content

Commit

Permalink
debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
DreamWuGit committed May 29, 2024
1 parent de28405 commit 705622c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bus-mapping/src/circuit_input_builder/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,18 @@ impl TxL1Fee {
+ self.blob_scalar as u128
* tx_rlp_signed_len as u128
* self.l1_blob_basefee as u128;
log::debug!(
"tx_l1_fee {} commit_scalar {} base_fee {} blob_scalar {}
tx_rlp_signed_len {} l1_blob_basefee {} tx_quient {},reminder {}",
tx_l1_fee,
self.commit_scalar,
self.base_fee,
self.blob_scalar,
tx_rlp_signed_len,
self.l1_blob_basefee,
tx_l1_fee / TX_L1_FEE_PRECISION as u128,
tx_l1_fee % TX_L1_FEE_PRECISION as u128
);
(
(tx_l1_fee / TX_L1_FEE_PRECISION as u128) as u64,
(tx_l1_fee % TX_L1_FEE_PRECISION as u128) as u64,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,13 @@ impl<F: Field> TxL1FeeGadget<F> {
tx_data_gas_cost: u64,
tx_signed_length: u64,
) -> Result<(), Error> {
#[cfg(feature = "l1_fee_curie")]
log::debug!(
"assign: tx_l1_fee {:?} l1_fee_committed {:?} tx_signed_length {}",
l1_fee,
l1_fee_committed,
tx_signed_length
);
let (tx_l1_fee, remainder) = if cfg!(feature = "l1_fee_curie") {
l1_fee.tx_l1_fee(tx_data_gas_cost, 0)
} else {
Expand Down

0 comments on commit 705622c

Please sign in to comment.