Skip to content

Commit

Permalink
feat(pathfinder/re_execute): log matching estimations
Browse files Browse the repository at this point in the history
  • Loading branch information
kkovaacs committed Feb 22, 2024
1 parent 6c0af7e commit 84af0e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/pathfinder/examples/re_execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,9 @@ fn execute(storage: &mut Storage, chain_id: ChainId, work: Work) {
if gas_diff > (actual_gas_consumed * 2 / 10)
|| data_gas_diff > (actual_data_gas_consumed * 2 / 10)
{
tracing::warn!(block_number=%work.header.number, transaction_hash=%receipt.transaction_hash, %estimated_gas_consumed, %actual_gas_consumed, estimated_fee=%estimate.overall_fee, %actual_fee, "Estimation mismatch");
tracing::warn!(block_number=%work.header.number, transaction_hash=%receipt.transaction_hash, %estimated_gas_consumed, %actual_gas_consumed, %estimated_data_gas_consumed, %actual_data_gas_consumed, estimated_fee=%estimate.overall_fee, %actual_fee, "Estimation mismatch");
} else {
tracing::debug!(block_number=%work.header.number, transaction_hash=%receipt.transaction_hash, %estimated_gas_consumed, %actual_gas_consumed, %estimated_data_gas_consumed, %actual_data_gas_consumed, estimated_fee=%estimate.overall_fee, %actual_fee, "Estimation matches");
}
}
}
Expand Down

0 comments on commit 84af0e9

Please sign in to comment.