summaryrefslogtreecommitdiff
path: root/bip-0065.mediawiki
diff options
context:
space:
mode:
authorLuke-Jr <luke_github1@dashjr.org>2015-12-11 07:04:11 +0000
committerLuke-Jr <luke_github1@dashjr.org>2015-12-11 07:04:11 +0000
commit99effc1c709dd3e969b47c94117d716d6a942e1f (patch)
treef7234da1890b1540806310a2eadea210586ef75f /bip-0065.mediawiki
parent84779aa5c372b6b835500a8e2b8b2c9d0b81a5b9 (diff)
parentabc7ae83a0ae3f31e83bf7933bcf26ed4f6b529d (diff)
downloadbips-99effc1c709dd3e969b47c94117d716d6a942e1f.tar.xz
Merge pull request #254 from jl2012/patch-6
Full description of the behavior of OP_CLTV
Diffstat (limited to 'bip-0065.mediawiki')
-rw-r--r--bip-0065.mediawiki16
1 files changed, 11 insertions, 5 deletions
diff --git a/bip-0065.mediawiki b/bip-0065.mediawiki
index f5144eb..1bd0da8 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 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
until either a certain block height, or block time, has been reached. By