Add SCRIPT_VERIFY_SIGPUSHONLY (BIP62 rule 2)

This commit is contained in:
Pieter Wuille
2014-10-08 16:29:45 -07:00
parent 65e4e8427d
commit d752ba86c1
8 changed files with 61 additions and 4 deletions

View File

@@ -46,6 +46,9 @@ enum
// verify dummy stack item consumed by CHECKMULTISIG is of zero-length (softfork safe, BIP62 rule 7).
SCRIPT_VERIFY_NULLDUMMY = (1U << 4),
// Using a non-push operator in the scriptSig causes script failure (softfork safe, BIP62 rule 2).
SCRIPT_VERIFY_SIGPUSHONLY = (1U << 5),
};
uint256 SignatureHash(const CScript &scriptCode, const CTransaction& txTo, unsigned int nIn, int nHashType);