mirror of
https://github.com/kaspanet/kaspad.git
synced 2026-03-04 16:25:23 +00:00
[DEV-199] Apply the minimum-if-policy for all transactions (#88)
* [DEV-199] apply minimum if * [DEV-199] refactor popIfBool * [DEV-199] use popIfBool in OP_NOTIF
This commit is contained in:
committed by
stasatdaglabs
parent
030469f035
commit
bb10f8484c
@@ -72,7 +72,7 @@
|
||||
|
||||
["1 1", "VERIFY", "", "OK"],
|
||||
["1 0x05 0x01 0x00 0x00 0x00 0x00", "VERIFY", "", "OK", "values >4 bytes can be cast to boolean"],
|
||||
["1 0x01 0x80", "IF 0 ENDIF", "", "OK", "negative 0 is false"],
|
||||
["0x01 0x80", "VERIFY TRUE", "", "VERIFY", "negative 0 is false"],
|
||||
|
||||
["10 0 11", "TOALTSTACK DROP FROMALTSTACK ADD 21 EQUAL", "", "OK"],
|
||||
["'gavin_was_here'", "TOALTSTACK 11 FROMALTSTACK 'gavin_was_here' EQUALVERIFY 11 EQUAL", "", "OK"],
|
||||
@@ -687,7 +687,7 @@
|
||||
|
||||
["", "NOP", "", "EMPTY_STACK", "Checks EMPTY_STACK error"],
|
||||
|
||||
["'abc'", "IF INVERT ELSE 1 ENDIF", "", "DISABLED_OPCODE", "INVERT disabled"],
|
||||
["'abc'", "INVERT VERIFY TRUE", "", "DISABLED_OPCODE", "INVERT disabled"],
|
||||
["1 2 0", "IF AND ELSE 1 ENDIF NOP", "", "DISABLED_OPCODE", "AND disabled"],
|
||||
["1 2 0", "IF OR ELSE 1 ENDIF NOP", "", "DISABLED_OPCODE", "OR disabled"],
|
||||
["1 2 0", "IF XOR ELSE 1 ENDIF NOP", "", "DISABLED_OPCODE", "XOR disabled"],
|
||||
@@ -1064,6 +1064,10 @@
|
||||
["0 0x02 0x0000", "CHECKMULTISIGVERIFY 1", "", "UNKNOWN_ERROR"],
|
||||
["0x02 0x0000 0", "CHECKMULTISIGVERIFY 1", "", "UNKNOWN_ERROR"],
|
||||
|
||||
["Check MINIMALIF"],
|
||||
["2", "IF TRUE ELSE FALSE", "", "MINIMALIF"],
|
||||
["2", "NOTIF TRUE ELSE FALSE", "", "MINIMALIF"],
|
||||
|
||||
|
||||
["Order of CHECKMULTISIG evaluation tests, inverted by swapping the order of"],
|
||||
["pubkeys/signatures so they fail due to the STRICTENC rules on validly encoded"],
|
||||
|
||||
Reference in New Issue
Block a user