1
0
mirror of https://github.com/bitcoin/bips.git synced 2025-05-12 12:03:29 +00:00

Corrections with the conditions for script failure

This commit is contained in:
jl2012 2015-12-01 01:47:16 +08:00
parent 0cd94c9f72
commit ac4cd1d46c

View File

@ -22,10 +22,11 @@ being spent.
CHECKSEQUENCEVERIFY redefines the existing NOP3 opcode. CHECKSEQUENCEVERIFY redefines the existing NOP3 opcode.
When executed, if any of the following conditions are true, the script interpreter will terminate with an error: When executed, if any of the following conditions are true, the script interpreter will terminate with an error:
* the stack is empty; or
* the top item on the stack is less than 0; or * the top item on the stack is less than 0; or
* the top item on the stack has the disable flag (1 << 31) unset; and * the top item on the stack has the disable flag (1 << 31) unset; and
** the transaction version is less than 2; or ** the transaction version is less than 2; or
** the transaction input sequence number disable flag (1 << 31) is set; and ** the transaction input sequence number disable flag (1 << 31) is set; or
** the relative lock-time type is not the same; or ** the relative lock-time type is not the same; or
** the top stack item is greater than the transaction sequence (when masked according to the BIP68); ** the top stack item is greater than the transaction sequence (when masked according to the BIP68);