Skip to content

Commit 53fe0b7

Browse files
committed
Fix missing strFailReason in CreateTransaction
Suggested by MarcoFalke <[email protected]> bitcoin/bitcoin#17260 (comment)
1 parent 4b28a05 commit 53fe0b7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/wallet/wallet.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2783,11 +2783,7 @@ bool CWallet::CreateTransaction(interfaces::Chain::Lock& locked_chain, const std
27832783
SignatureData sigdata;
27842784

27852785
const SigningProvider* provider = GetSigningProvider();
2786-
if (!provider) {
2787-
return false;
2788-
}
2789-
2790-
if (!ProduceSignature(*provider, MutableTransactionSignatureCreator(&txNew, nIn, coin.txout.nValue, SIGHASH_ALL), scriptPubKey, sigdata))
2786+
if (!provider || !ProduceSignature(*provider, MutableTransactionSignatureCreator(&txNew, nIn, coin.txout.nValue, SIGHASH_ALL), scriptPubKey, sigdata))
27912787
{
27922788
strFailReason = _("Signing transaction failed").translated;
27932789
return false;

0 commit comments

Comments
 (0)