wallet_rpc_server: restrict relay_tx

This commit is contained in:
selsta
2026-04-21 19:42:36 +02:00
parent 94c2ed34c2
commit 9731bbfbf5

View File

@@ -1925,6 +1925,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;