Merge pull request #5894

c89f7ef wallet2_api: fix load unsigned tx from file error propagation (xiphon)
This commit is contained in:
luigi1111 2019-09-30 18:45:41 -05:00
commit e23b9847d0
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

@ -1123,6 +1123,10 @@ UnsignedTransaction *WalletImpl::loadUnsignedTx(const std::string &unsigned_file
UnsignedTransactionImpl * transaction = new UnsignedTransactionImpl(*this); UnsignedTransactionImpl * transaction = new UnsignedTransactionImpl(*this);
if (!m_wallet->load_unsigned_tx(unsigned_filename, transaction->m_unsigned_tx_set)){ if (!m_wallet->load_unsigned_tx(unsigned_filename, transaction->m_unsigned_tx_set)){
setStatusError(tr("Failed to load unsigned transactions")); setStatusError(tr("Failed to load unsigned transactions"));
transaction->m_status = UnsignedTransaction::Status::Status_Error;
transaction->m_errorString = errorString();
return transaction;
} }
// Check tx data and construct confirmation message // Check tx data and construct confirmation message