Skip to content

Commit

Permalink
enable debug printing when validating txes with interest
Browse files Browse the repository at this point in the history
  • Loading branch information
DeckerSU committed Oct 21, 2022
1 parent 6b7ab87 commit 49c8f7e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions zebra-consensus/src/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -495,9 +495,12 @@ where
.sum::<Result<Amount<NonNegative>, zebra_chain::amount::Error>>()
.unwrap_or(Amount::zero());

// tracing::info!(?block_height, ?block_time, "check against");
// tracing::info!(?txid, ?spent_utxos_count, ?vb, "check what");
// tracing::info!(?input_value, ?output_value, ?interest_value, "check values");
if interest_value > Amount::<NonNegative>::zero()
{
tracing::info!(?block_height, ?block_time, "check against");
tracing::info!(?txid, ?spent_utxos_count, ?vb, "check what");
tracing::info!(?input_value, ?output_value, ?interest_value, "check values");
}

// as we have interest_value calculated we can add it to vb.transparent (!) as a part of
// input value
Expand Down

0 comments on commit 49c8f7e

Please sign in to comment.