1
0
Fork 0
forked from lthn/blockchain

fixed unsigned tx blob returning on "transfer" for WO-wallets (cold-signing)

This commit is contained in:
sowle 2020-07-21 14:34:54 +03:00
parent 50abfc82aa
commit 477f1dea73
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -4775,7 +4775,7 @@ void wallet2::transfer(const construct_tx_param& ctp,
if (m_watch_only)
{
bool r = store_unsigned_tx_to_file_and_reserve_transfers(ftp, "zano_tx_unsigned", p_signed_tx_blob_str);
bool r = store_unsigned_tx_to_file_and_reserve_transfers(ftp, (p_unsigned_filename_or_tx_blob_str != nullptr ? *p_unsigned_filename_or_tx_blob_str : "zano_tx_unsigned"), p_unsigned_filename_or_tx_blob_str);
WLT_THROW_IF_FALSE_WALLET_CMN_ERR_EX(r, "failed to store unsigned tx");
WLT_LOG_GREEN("[wallet::transfer]" << " prepare_transaction_time: " << print_fixed_decimal_point(prepare_transaction_time, 3), LOG_LEVEL_0);
return;