update opened_burn_account comments, propagate errors, and lower the log level (#3806)
This commit is contained in:
parent
6386ab78e8
commit
07662aae22
5 changed files with 10 additions and 4 deletions
|
@ -251,7 +251,7 @@ std::string nano::error_process_messages::message (int ev) const
|
|||
case nano::error_process::gap_epoch_open_pending:
|
||||
return "Gap pending for open epoch block";
|
||||
case nano::error_process::opened_burn_account:
|
||||
return "Burning account";
|
||||
return "Block attempts to open the burn account";
|
||||
case nano::error_process::balance_mismatch:
|
||||
return "Balance and amount delta do not match";
|
||||
case nano::error_process::block_position:
|
||||
|
|
|
@ -138,7 +138,7 @@ enum class error_process
|
|||
gap_previous, // Block marked as previous is unknown
|
||||
gap_source, // Block marked as source is unknown
|
||||
gap_epoch_open_pending, // Block marked as pending blocks required for epoch open block are unknown
|
||||
opened_burn_account, // The impossible happened, someone found the private key associated with the public key '0'.
|
||||
opened_burn_account, // Block attempts to open the burn account
|
||||
balance_mismatch, // Balance and amount delta don't match
|
||||
block_position, // This block cannot follow the previous block
|
||||
insufficient_work, // Insufficient work for this block, even though it passed the minimal validation
|
||||
|
|
|
@ -455,7 +455,10 @@ nano::process_return nano::block_processor::process_one (nano::write_transaction
|
|||
}
|
||||
case nano::process_result::opened_burn_account:
|
||||
{
|
||||
node.logger.always_log (boost::str (boost::format ("*** Rejecting open block for burn account ***: %1%") % hash.to_string ()));
|
||||
if (node.config.logging.ledger_logging ())
|
||||
{
|
||||
node.logger.try_log (boost::str (boost::format ("Rejecting open block for burn account: %1%") % hash.to_string ()));
|
||||
}
|
||||
break;
|
||||
}
|
||||
case nano::process_result::balance_mismatch:
|
||||
|
|
|
@ -3312,6 +3312,9 @@ void nano::json_handler::process ()
|
|||
rpc_l->ec = nano::error_process::insufficient_work;
|
||||
break;
|
||||
}
|
||||
case nano::process_result::opened_burn_account:
|
||||
rpc_l->ec = nano::error_process::opened_burn_account;
|
||||
break;
|
||||
default:
|
||||
{
|
||||
rpc_l->ec = nano::error_process::other;
|
||||
|
|
|
@ -339,7 +339,7 @@ enum class process_result
|
|||
gap_previous, // Block marked as previous is unknown
|
||||
gap_source, // Block marked as source is unknown
|
||||
gap_epoch_open_pending, // Block marked as pending blocks required for epoch open block are unknown
|
||||
opened_burn_account, // The impossible happened, someone found the private key associated with the public key '0'.
|
||||
opened_burn_account, // Block attempts to open the burn account
|
||||
balance_mismatch, // Balance and amount delta don't match
|
||||
representative_mismatch, // Representative is changed when it is not allowed
|
||||
block_position, // This block cannot follow the previous block
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue