aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/command_server.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-01-30 13:28:26 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-01-30 13:28:26 +0000
commitbf6d1474c097ee0affe827fe2e3dac489b290f40 (patch)
treec662b2241380a793c64c2f1254de14cdf34339c8 /src/daemon/command_server.cpp
parentrpc: add missing return on error when getting a tx (diff)
downloadmonero-bf6d1474c097ee0affe827fe2e3dac489b290f40.tar.xz
new flush_txpool command, and associated RPC call
It can flush a particular tx, or the whole pool (the RPC command can flush a list of transactions too)
Diffstat (limited to '')
-rw-r--r--src/daemon/command_server.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/daemon/command_server.cpp b/src/daemon/command_server.cpp
index f99b0844a..206de9d4a 100644
--- a/src/daemon/command_server.cpp
+++ b/src/daemon/command_server.cpp
@@ -209,6 +209,11 @@ t_command_server::t_command_server(
, std::bind(&t_command_parser_executor::unban, &m_parser, p::_1)
, "Unban a given IP"
);
+ m_command_lookup.set_handler(
+ "flush_txpool"
+ , std::bind(&t_command_parser_executor::flush_txpool, &m_parser, p::_1)
+ , "Flush a transaction from the tx pool by its txid, or the whole tx pool"
+ );
}
bool t_command_server::process_command_str(const std::string& cmd)