Skip to content

Commit

Permalink
Fix missing strFailReason in CreateTransaction
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanofsky committed Oct 29, 2019
1 parent 4b28a05 commit 53fe0b7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2783,11 +2783,7 @@ bool CWallet::CreateTransaction(interfaces::Chain::Lock& locked_chain, const std
SignatureData sigdata;

const SigningProvider* provider = GetSigningProvider();
if (!provider) {
return false;
}

if (!ProduceSignature(*provider, MutableTransactionSignatureCreator(&txNew, nIn, coin.txout.nValue, SIGHASH_ALL), scriptPubKey, sigdata))
if (!provider || !ProduceSignature(*provider, MutableTransactionSignatureCreator(&txNew, nIn, coin.txout.nValue, SIGHASH_ALL), scriptPubKey, sigdata))
{
strFailReason = _("Signing transaction failed").translated;
return false;
Expand Down

0 comments on commit 53fe0b7

Please sign in to comment.