aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/command_server.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-04-11 00:32:30 +0200
committerRiccardo Spagni <ric@spagni.net>2017-04-11 00:32:30 +0200
commit878c4ee913eb9f3ba7f56e939988b4a34b3c30a0 (patch)
treedfa82e81aa79559181aba2b94fad70d89bb32af7 /src/daemon/command_server.cpp
parentMerge pull request #1951 (diff)
parentdaemon: new relay_tx command and RPC (diff)
downloadmonero-878c4ee913eb9f3ba7f56e939988b4a34b3c30a0.tar.xz
Merge pull request #1952
548075b1 daemon: new relay_tx command and RPC (moneromooo-monero)
Diffstat (limited to 'src/daemon/command_server.cpp')
-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 0081e00dc..21f550a85 100644
--- a/src/daemon/command_server.cpp
+++ b/src/daemon/command_server.cpp
@@ -248,6 +248,11 @@ t_command_server::t_command_server(
, std::bind(&t_command_parser_executor::update, &m_parser, p::_1)
, "subcommands: check (check if an update is available), download (download it is there is), update (not implemented)"
);
+ m_command_lookup.set_handler(
+ "relay_tx"
+ , std::bind(&t_command_parser_executor::relay_tx, &m_parser, p::_1)
+ , "Relay a given transaction by its txid"
+ );
}
bool t_command_server::process_command_str(const std::string& cmd)