diff options
author | jl2012 <jl2012@users.noreply.github.com> | 2015-12-02 02:03:30 +0800 |
---|---|---|
committer | jl2012 <jl2012@users.noreply.github.com> | 2015-12-02 02:03:30 +0800 |
commit | 71dd5c44e831bf2c87633455291592ef2decae24 (patch) | |
tree | 03f7240210bc7bd2136cfa966f903b6c5cf47838 /bip-0065.mediawiki | |
parent | 0cd94c9f727c4e9cb010a771e4483aadf34bcecc (diff) |
Full description of the behavior of the OP_CLTV
Diffstat (limited to 'bip-0065.mediawiki')
-rw-r--r-- | bip-0065.mediawiki | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/bip-0065.mediawiki b/bip-0065.mediawiki index b48fa75..a960e54 100644 --- a/bip-0065.mediawiki +++ b/bip-0065.mediawiki @@ -16,11 +16,17 @@ some point in the future. ==Summary== -CHECKLOCKTIMEVERIFY redefines the existing NOP2 opcode. When executed it -compares the top item on the stack to the nLockTime field of the transaction -containing the scriptSig. If that top stack item is greater than the transaction's -nLockTime field the script fails immediately, otherwise script evaluation continues -as though a NOP was executed. +CHECKLOCKTIMEVERIFY redefines the existing NOP2 opcode. When executed, if +any of the following conditions are true, the script interpreter will terminate +with an error: + +* the stake is empty; or +* the top item on the stack is less than 0; or +* the lock-time type (height vs. timestamp) of the top stake item and the nLockTime field are not the same; or +* the top stack item is greater than the transaction's nLockTime field; or +* the nLockTime feature is disabled by setting the nSequence field of the txin to 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 until either a certain block height, or block time, has been reached. By |