Skip to content

Commit

Permalink
only log process_funds for new blocks, not during replay
Browse files Browse the repository at this point in the history
  • Loading branch information
ABW committed Jan 27, 2025
1 parent c5a34eb commit 1aca129
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions libraries/chain/database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2769,9 +2769,12 @@ void database::process_funds()
adjust_balance( get_treasury_name(), new_hbd );
}

ilog( "PROCESS_FUNDS: ${all}, ${cr}, ${vr}, ${dhf}, ${dhf_hbd}, ${wr}",
( "all", new_hive.value )( "cr", content_reward.value )( "vr", vesting_reward.value )
( "dhf", dhf_new_funds.value )( "dhf_hbd", new_hbd.amount.value )( "wr", witness_reward.value ) );
if( is_validating_block() )
{
ilog( "PROCESS_FUNDS: ${all}, ${cr}, ${vr}, ${dhf}, ${dhf_hbd}, ${wr}",
( "all", new_hive.value )( "cr", content_reward.value )( "vr", vesting_reward.value )
( "dhf", dhf_new_funds.value )( "dhf_hbd", new_hbd.amount.value )( "wr", witness_reward.value ) );
}

new_hive = content_reward + vesting_reward + witness_reward;

Expand Down

0 comments on commit 1aca129

Please sign in to comment.