From cad5f6673bb537d36b80d90028395995215afe78 Mon Sep 17 00:00:00 2001 From: woodser Date: Wed, 24 Mar 2021 04:19:01 -0400 Subject: [PATCH] check for empty signature in check_tx_proof() --- src/wallet/monero_wallet_full.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wallet/monero_wallet_full.cpp b/src/wallet/monero_wallet_full.cpp index d44d3e9..fc204bc 100644 --- a/src/wallet/monero_wallet_full.cpp +++ b/src/wallet/monero_wallet_full.cpp @@ -2640,6 +2640,9 @@ namespace monero { throw std::runtime_error("Invalid address"); } + // validate signature + if (signature.empty()) throw std::runtime_error("Must provide signature to check tx proof"); + // initialize and return tx check using wallet2 std::shared_ptr check_tx = std::make_shared(); uint64_t received_amount;