Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused process_result related code #911

Merged
merged 1 commit into from
Jun 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions rai/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,6 @@ enum class process_result
unreceivable, // Source block doesn't exist or has already been received
gap_previous, // Block marked as previous is unknown
gap_source, // Block marked as source is unknown
not_receive_from_send, // Receive does not have a send source
account_mismatch, // Account number in open block doesn't match send destination
opened_burn_account, // The impossible happened, someone found the private key associated with the public key '0'.
balance_mismatch, // Balance and amount delta don't match
block_position // This block cannot follow the previous block
Expand Down
16 changes: 0 additions & 16 deletions rai/node/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1387,14 +1387,6 @@ rai::process_return rai::block_processor::process_receive_one (MDB_txn * transac
}
break;
}
case rai::process_result::not_receive_from_send:
{
if (node.config.logging.ledger_logging ())
{
BOOST_LOG (node.log) << boost::str (boost::format ("Not receive from send for: %1%") % hash.to_string ());
}
break;
}
case rai::process_result::fork:
{
if (!node.block_arrival.recent (hash))
Expand All @@ -1408,14 +1400,6 @@ rai::process_return rai::block_processor::process_receive_one (MDB_txn * transac
}
break;
}
case rai::process_result::account_mismatch:
{
if (node.config.logging.ledger_logging ())
{
BOOST_LOG (node.log) << boost::str (boost::format ("Account mismatch for: %1%") % hash.to_string ());
}
break;
}
case rai::process_result::opened_burn_account:
{
BOOST_LOG (node.log) << boost::str (boost::format ("*** Rejecting open block for burn account ***: %1%") % hash.to_string ());
Expand Down
10 changes: 0 additions & 10 deletions rai/node/rpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2645,11 +2645,6 @@ void rai::rpc_handler::process ()
error_response (response, "Unreceivable");
break;
}
case rai::process_result::not_receive_from_send:
{
error_response (response, "Not receive from send");
break;
}
case rai::process_result::fork:
{
const bool force = request.get<bool> ("force", false);
Expand All @@ -2667,11 +2662,6 @@ void rai::rpc_handler::process ()
}
break;
}
case rai::process_result::account_mismatch:
{
error_response (response, "Account mismatch");
break;
}
default:
{
error_response (response, "Error processing block");
Expand Down