mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-19 06:30:45 +02:00
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
@ -2783,11 +2783,7 @@ bool CWallet::CreateTransaction(interfaces::Chain::Lock& locked_chain, const std
|
|||||||
SignatureData sigdata;
|
SignatureData sigdata;
|
||||||
|
|
||||||
const SigningProvider* provider = GetSigningProvider();
|
const SigningProvider* provider = GetSigningProvider();
|
||||||
if (!provider) {
|
if (!provider || !ProduceSignature(*provider, MutableTransactionSignatureCreator(&txNew, nIn, coin.txout.nValue, SIGHASH_ALL), scriptPubKey, sigdata))
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!ProduceSignature(*provider, MutableTransactionSignatureCreator(&txNew, nIn, coin.txout.nValue, SIGHASH_ALL), scriptPubKey, sigdata))
|
|
||||||
{
|
{
|
||||||
strFailReason = _("Signing transaction failed").translated;
|
strFailReason = _("Signing transaction failed").translated;
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user