mirror of
https://github.com/bitcoin/bips.git
synced 2025-05-12 12:03:29 +00:00
Merge pull request #254 from jl2012/patch-6
Full description of the behavior of OP_CLTV
This commit is contained in:
commit
99effc1c70
@ -16,11 +16,17 @@ some point in the future.
|
|||||||
|
|
||||||
==Summary==
|
==Summary==
|
||||||
|
|
||||||
CHECKLOCKTIMEVERIFY redefines the existing NOP2 opcode. When executed it
|
CHECKLOCKTIMEVERIFY redefines the existing NOP2 opcode. When executed, if
|
||||||
compares the top item on the stack to the nLockTime field of the transaction
|
any of the following conditions are true, the script interpreter will terminate
|
||||||
containing the scriptSig. If that top stack item is greater than the transaction's
|
with an error:
|
||||||
nLockTime field the script fails immediately, otherwise script evaluation continues
|
|
||||||
as though a NOP was executed.
|
* the stack is empty; or
|
||||||
|
* the top item on the stack is less than 0; or
|
||||||
|
* the lock-time type (height vs. timestamp) of the top stack item and the nLockTime field are not the same; or
|
||||||
|
* the top stack item is greater than the transaction's nLockTime field; or
|
||||||
|
* the nSequence field of the txin is 0xffffffff;
|
||||||
|
|
||||||
|
Otherwise, script execution will continue as if a NOP had been executed.
|
||||||
|
|
||||||
The nLockTime field in a transaction prevents the transaction from being mined
|
The nLockTime field in a transaction prevents the transaction from being mined
|
||||||
until either a certain block height, or block time, has been reached. By
|
until either a certain block height, or block time, has been reached. By
|
||||||
|
Loading…
x
Reference in New Issue
Block a user