diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2014-10-08 16:29:45 -0700 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2014-10-25 03:03:16 -0700 |
commit | d752ba86c1872f64a4641cf77008826d32bde65f (patch) | |
tree | 07728ee7eee5a8dacc3d31496ef4b9b204f9f06e /src/script/interpreter.h | |
parent | 65e4e8427d900b27f579dc12af6c74b3ec628286 (diff) |
Add SCRIPT_VERIFY_SIGPUSHONLY (BIP62 rule 2)
Diffstat (limited to 'src/script/interpreter.h')
-rw-r--r-- | src/script/interpreter.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/script/interpreter.h b/src/script/interpreter.h index de5ce2ced1..085cd867da 100644 --- a/src/script/interpreter.h +++ b/src/script/interpreter.h @@ -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); |