mirror of
https://github.com/wownero/wownero.git
synced 2026-10-31 21:38:39 +01:00
wallet_rpc_server: add missing background check
Reported by ro1m
This commit is contained in:
@@ -2786,6 +2786,7 @@ namespace tools
|
|||||||
bool wallet_rpc_server::on_get_spend_proof(const wallet_rpc::COMMAND_RPC_GET_SPEND_PROOF::request& req, wallet_rpc::COMMAND_RPC_GET_SPEND_PROOF::response& res, epee::json_rpc::error& er, const connection_context *ctx)
|
bool wallet_rpc_server::on_get_spend_proof(const wallet_rpc::COMMAND_RPC_GET_SPEND_PROOF::request& req, wallet_rpc::COMMAND_RPC_GET_SPEND_PROOF::response& res, epee::json_rpc::error& er, const connection_context *ctx)
|
||||||
{
|
{
|
||||||
if (!m_wallet) return not_open(er);
|
if (!m_wallet) return not_open(er);
|
||||||
|
CHECK_IF_BACKGROUND_SYNCING();
|
||||||
|
|
||||||
crypto::hash txid;
|
crypto::hash txid;
|
||||||
if (!epee::string_tools::hex_to_pod(req.txid, txid))
|
if (!epee::string_tools::hex_to_pod(req.txid, txid))
|
||||||
|
|||||||
Reference in New Issue
Block a user