From 069cbbf769e29835523c65d3d6c15114b979742b Mon Sep 17 00:00:00 2001 From: sowle Date: Wed, 27 May 2020 13:14:14 +0300 Subject: [PATCH] wallet: transfer is forbidden for auditable watch-only wallets --- src/wallet/wallet2.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index c1e19783..3404cc7a 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -4582,6 +4582,8 @@ void wallet2::transfer(const construct_tx_param& ctp, bool send_to_network, std::string* p_signed_tx_blob_str) { + WLT_THROW_IF_FALSE_WALLET_CMN_ERR_EX(!is_auditable() || !is_watch_only(), "You can't initiate coins transfer using an auditable watch-only wallet."); // btw, watch-only wallets can call transfer() within cold-signing process + check_and_throw_if_self_directed_tx_with_payment_id_requested(ctp); TIME_MEASURE_START(prepare_transaction_time);