You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SignatureData sigdata = DataFromTransaction(mtx, i, coin->second.out);
409
441
// Only sign SIGHASH_SINGLE if there's a corresponding output:
410
442
if (!fHashSingle || (i < mtx.vout.size())) {
411
-
ProduceSignature(*keystore, MutableTransactionSignatureCreator(&mtx, i, amount, nHashType), prevPubKey, sigdata);
443
+
ProduceSignature(*keystore, MutableTransactionSignatureCreator(&mtx, i, amount, &txdata, nHashType), prevPubKey, sigdata);
412
444
}
413
445
414
446
UpdateInput(txin, sigdata);
415
447
416
448
ScriptError serror = SCRIPT_ERR_OK;
417
-
if (!VerifyScript(txin.scriptSig, prevPubKey, STANDARD_SCRIPT_VERIFY_FLAGS, TransactionSignatureChecker(&txConst, i, amount, MissingDataBehavior::FAIL), &serror)) {
449
+
if (!VerifyScript(txin.scriptSig, prevPubKey, STANDARD_SCRIPT_VERIFY_FLAGS, TransactionSignatureChecker(&txConst, i, amount, txdata, MissingDataBehavior::FAIL), &serror)) {
418
450
if (serror == SCRIPT_ERR_INVALID_STACK_OPERATION) {
419
451
// Unable to sign input and verification failed (possible attempt to partially sign).
0 commit comments