Fix missing strFailReason in CreateTransaction
Suggested by MarcoFalke <falke.marco@gmail.com> https://github.com/bitcoin/bitcoin/pull/17260#discussion_r340036269
This commit is contained in:
parent
4b28a05f08
commit
53fe0b70ad
1 changed files with 1 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue