forked from lthn/blockchain
wallet: transfer is forbidden for auditable watch-only wallets
This commit is contained in:
parent
9ea200e3fa
commit
069cbbf769
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue