Skip to content

Commit

Permalink
Log block processor suspicious activity
Browse files Browse the repository at this point in the history
  • Loading branch information
pwojcikdev committed Jan 9, 2025
1 parent f7a3e52 commit bb2ea80
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions nano/node/block_processor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -394,39 +394,48 @@ nano::block_status nano::block_processor::process_one (secure::write_transaction
}
case nano::block_status::bad_signature:
{
logger.debug (nano::log::type::block_processor, "Block signature is invalid: {}", hash);
break;
}
case nano::block_status::negative_spend:
{
logger.debug (nano::log::type::block_processor, "Block spends negative amount: {}", hash);
break;
}
case nano::block_status::unreceivable:
{
logger.debug (nano::log::type::block_processor, "Block is unreceivable: {}", hash);
break;
}
case nano::block_status::fork:
{
stats.inc (nano::stat::type::ledger, nano::stat::detail::fork);
logger.debug (nano::log::type::block_processor, "Block is a fork: {}", hash);
break;
}
case nano::block_status::opened_burn_account:
{
logger.debug (nano::log::type::block_processor, "Block opens burn account: {}", hash);
break;
}
case nano::block_status::balance_mismatch:
{
logger.debug (nano::log::type::block_processor, "Block balance mismatch: {}", hash);
break;
}
case nano::block_status::representative_mismatch:
{
logger.debug (nano::log::type::block_processor, "Block representative mismatch: {}", hash);
break;
}
case nano::block_status::block_position:
{
logger.debug (nano::log::type::block_processor, "Block is in incorrect position: {}", hash);
break;
}
case nano::block_status::insufficient_work:
{
logger.debug (nano::log::type::block_processor, "Block has insufficient work: {}", hash);
break;
}
}
Expand Down

0 comments on commit bb2ea80

Please sign in to comment.