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

rpc: Remove memorypool RPC Command #2214

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
16 changes: 0 additions & 16 deletions src/rpc/blockchain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2084,22 +2084,6 @@ UniValue currenttime(const UniValue& params, bool fHelp)
return res;
}

UniValue memorypool(const UniValue& params, bool fHelp)
{
if (fHelp || params.size() != 0)
throw runtime_error(
"memorypool\n"
"\n"
"Displays included and excluded memory pool txs\n");

UniValue res(UniValue::VOBJ);

res.pushKV("Excluded Tx", msMiningErrorsExcluded);
res.pushKV("Included Tx", msMiningErrorsIncluded);

return res;
}

UniValue networktime(const UniValue& params, bool fHelp)
{
if (fHelp || params.size() != 0)
Expand Down
1 change: 0 additions & 1 deletion src/rpc/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,6 @@ static const CRPCCommand vRPCCommands[] =
{ "getpeerinfo", &getpeerinfo, cat_network },
{ "getrawmempool", &getrawmempool, cat_network },
{ "listbanned", &listbanned, cat_network },
{ "memorypool", &memorypool, cat_network },
{ "networktime", &networktime, cat_network },
{ "ping", &ping, cat_network },
{ "setban", &setban, cat_network },
Expand Down
1 change: 0 additions & 1 deletion src/rpc/server.h
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@ extern UniValue getnetworkinfo(const UniValue& params, bool fHelp);
extern UniValue getpeerinfo(const UniValue& params, bool fHelp);
extern UniValue getrawmempool(const UniValue& params, bool fHelp);
extern UniValue listbanned(const UniValue& params, bool fHelp);
extern UniValue memorypool(const UniValue& params, bool fHelp);
extern UniValue networktime(const UniValue& params, bool fHelp);
extern UniValue ping(const UniValue& params, bool fHelp);
extern UniValue rpc_exportstats(const UniValue& params, bool fHelp);
Expand Down