diff --git a/nano/lib/errors.cpp b/nano/lib/errors.cpp index 742a7d2a..c5270cc6 100644 --- a/nano/lib/errors.cpp +++ b/nano/lib/errors.cpp @@ -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: diff --git a/nano/lib/errors.hpp b/nano/lib/errors.hpp index 3ec399cc..6ad85523 100644 --- a/nano/lib/errors.hpp +++ b/nano/lib/errors.hpp @@ -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 diff --git a/nano/node/blockprocessor.cpp b/nano/node/blockprocessor.cpp index 6e7272a6..d8be9a42 100644 --- a/nano/node/blockprocessor.cpp +++ b/nano/node/blockprocessor.cpp @@ -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: diff --git a/nano/node/json_handler.cpp b/nano/node/json_handler.cpp index a19d07a8..8f23be98 100644 --- a/nano/node/json_handler.cpp +++ b/nano/node/json_handler.cpp @@ -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; diff --git a/nano/secure/common.hpp b/nano/secure/common.hpp index 2e049904..e99197be 100644 --- a/nano/secure/common.hpp +++ b/nano/secure/common.hpp @@ -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