mirror of
https://codeberg.org/wowario/wownero
synced 2026-12-01 15:04:36 +01:00
wallet_rpc_server: restrict relay_tx
(cherry picked from commit 3703ec1833c3814290db7615fec2314f57ba5b8b)
This commit is contained in:
@@ -1901,6 +1901,13 @@ namespace tools
|
||||
//------------------------------------------------------------------------------------------------------------------------------
|
||||
bool wallet_rpc_server::on_relay_tx(const wallet_rpc::COMMAND_RPC_RELAY_TX::request& req, wallet_rpc::COMMAND_RPC_RELAY_TX::response& res, epee::json_rpc::error& er, const connection_context *ctx)
|
||||
{
|
||||
if (m_restricted)
|
||||
{
|
||||
er.code = WALLET_RPC_ERROR_CODE_DENIED;
|
||||
er.message = "Command unavailable in restricted mode.";
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!m_wallet) return not_open(er);
|
||||
|
||||
cryptonote::blobdata blob;
|
||||
|
||||
Reference in New Issue
Block a user