Create (MANDATORY|STANDARD)_SCRIPT_VERIFY_FLAGS constants

This commit is contained in:
Peter Todd
2014-03-10 17:31:46 -04:00
parent d4ffe4e425
commit 68f7d1d7af
6 changed files with 20 additions and 5 deletions

View File

@@ -1670,7 +1670,7 @@ bool SignSignature(const CKeyStore &keystore, const CScript& fromPubKey, CTransa
}
// Test solution
return VerifyScript(txin.scriptSig, fromPubKey, txTo, nIn, SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_STRICTENC, 0);
return VerifyScript(txin.scriptSig, fromPubKey, txTo, nIn, STANDARD_SCRIPT_VERIFY_FLAGS, 0);
}
bool SignSignature(const CKeyStore &keystore, const CTransaction& txFrom, CTransaction& txTo, unsigned int nIn, int nHashType)