diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-04-02 12:17:35 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-04-02 12:17:35 +0100 |
commit | 548075b1f533cd68f4daad63e7688414718f6021 (patch) | |
tree | 6927b6a67fa5ad36d14805c3d1c015ef5f8a0b23 /src/daemon/command_server.cpp | |
parent | Merge pull request #1930 (diff) | |
download | monero-548075b1f533cd68f4daad63e7688414718f6021.tar.xz |
daemon: new relay_tx command and RPC
Diffstat (limited to 'src/daemon/command_server.cpp')
-rw-r--r-- | src/daemon/command_server.cpp | 5 |
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) |