|
|
@ -1134,7 +1134,7 @@ public: |
|
|
|
SignatureData sigs; |
|
|
|
SignatureData sigs; |
|
|
|
// This check is to make sure that the script we created can actually be solved for and signed by us
|
|
|
|
// This check is to make sure that the script we created can actually be solved for and signed by us
|
|
|
|
// if we were to have the private keys. This is just to make sure that the script is valid and that,
|
|
|
|
// if we were to have the private keys. This is just to make sure that the script is valid and that,
|
|
|
|
// if found in a transaction, we would still accept and relay that transcation.
|
|
|
|
// if found in a transaction, we would still accept and relay that transaction.
|
|
|
|
if (!ProduceSignature(DummySignatureCreator(pwallet), witscript, sigs) || |
|
|
|
if (!ProduceSignature(DummySignatureCreator(pwallet), witscript, sigs) || |
|
|
|
!VerifyScript(sigs.scriptSig, witscript, &sigs.scriptWitness, MANDATORY_SCRIPT_VERIFY_FLAGS | SCRIPT_VERIFY_WITNESS_PUBKEYTYPE, DummySignatureCreator(pwallet).Checker())) { |
|
|
|
!VerifyScript(sigs.scriptSig, witscript, &sigs.scriptWitness, MANDATORY_SCRIPT_VERIFY_FLAGS | SCRIPT_VERIFY_WITNESS_PUBKEYTYPE, DummySignatureCreator(pwallet).Checker())) { |
|
|
|
return false; |
|
|
|
return false; |
|
|
@ -1159,7 +1159,7 @@ public: |
|
|
|
SignatureData sigs; |
|
|
|
SignatureData sigs; |
|
|
|
// This check is to make sure that the script we created can actually be solved for and signed by us
|
|
|
|
// This check is to make sure that the script we created can actually be solved for and signed by us
|
|
|
|
// if we were to have the private keys. This is just to make sure that the script is valid and that,
|
|
|
|
// if we were to have the private keys. This is just to make sure that the script is valid and that,
|
|
|
|
// if found in a transaction, we would still accept and relay that transcation.
|
|
|
|
// if found in a transaction, we would still accept and relay that transaction.
|
|
|
|
if (!ProduceSignature(DummySignatureCreator(pwallet), witscript, sigs) || |
|
|
|
if (!ProduceSignature(DummySignatureCreator(pwallet), witscript, sigs) || |
|
|
|
!VerifyScript(sigs.scriptSig, witscript, &sigs.scriptWitness, MANDATORY_SCRIPT_VERIFY_FLAGS | SCRIPT_VERIFY_WITNESS_PUBKEYTYPE, DummySignatureCreator(pwallet).Checker())) { |
|
|
|
!VerifyScript(sigs.scriptSig, witscript, &sigs.scriptWitness, MANDATORY_SCRIPT_VERIFY_FLAGS | SCRIPT_VERIFY_WITNESS_PUBKEYTYPE, DummySignatureCreator(pwallet).Checker())) { |
|
|
|
return false; |
|
|
|
return false; |
|
|
|