summaryrefslogtreecommitdiff
path: root/bip-0068.mediawiki
diff options
context:
space:
mode:
authorBtcDrak <btcdrak@gmail.com>2015-12-10 20:01:35 +0000
committerBtcDrak <btcdrak@gmail.com>2015-12-10 20:01:35 +0000
commit7239c330c77310865deea6ea0d45ca9dda68e411 (patch)
tree74d9f52bc0d693813b76252c063f94e1a69d0548 /bip-0068.mediawiki
parent84779aa5c372b6b835500a8e2b8b2c9d0b81a5b9 (diff)
downloadbips-7239c330c77310865deea6ea0d45ca9dda68e411.tar.xz
BIP68 now assume MTP in all instances
Diffstat (limited to 'bip-0068.mediawiki')
-rw-r--r--bip-0068.mediawiki4
1 files changed, 2 insertions, 2 deletions
diff --git a/bip-0068.mediawiki b/bip-0068.mediawiki
index 02bc2a4..58974ec 100644
--- a/bip-0068.mediawiki
+++ b/bip-0068.mediawiki
@@ -30,7 +30,7 @@ If bit (1 << 31) of the sequence number is not set, then the sequence number is
The sequence number encoding is interpreted as follows:
-Bit (1 << 22) determines if the relative lock-time is time-based or block based: If the bit is set, the relative lock-time specifies a timespan in units of 512 seconds granularity. The timespan starts from the median-time-past (MTP) of the output’s previous block, and ends either at the MTP of the previous block or at the nTime of the transaction’s block (depending on the enforcement status of BIP113). If the bit is not set, the relative lock-time specifies a number of blocks.
+Bit (1 << 22) determines if the relative lock-time is time-based or block based: If the bit is set, the relative lock-time specifies a timespan in units of 512 seconds granularity. The timespan starts from the median-time-past (MTP) of the output’s previous block, and ends either at the MTP of the previous block or at the nTime of the transaction’s block as defined by BIP113. If the bit is not set, the relative lock-time specifies a number of blocks.
The flag (1<<22) is the highest order bit in a 3-byte signed integer for use in bitcoin scripts as a 3-byte PUSHDATA with OP_CHECKSEQUENCEVERIFY (BIP 112).
@@ -43,7 +43,7 @@ For time based relative lock-time, 512 second granularity was chosen because bit
When the relative lock-time is time-based, it is interpreted as a minimum block-time constraint over the input's age. A relative time-based lock-time of zero indicates an input which can be included in any block. More generally, a relative time-based lock-time n can be included into any block produced 512 * n seconds after the mining date of the output it is spending, or any block thereafter.
The mining date of the output is equals to the median-time-past of the previous block which mined it.
-The block produced time is either equals to median time past of its parent or to its nTime field, depending on the state of BIP113 median-time-past.
+The block produced time is equal to the median-time-past of its parent according to BIP113.
When the relative lock-time is block-based, it is interpreted as a minimum block-height constraint over the input's age. A relative block-based lock-time of zero indicates an input which can be included in any block. More generally, a relative block lock-time n can be included n blocks after the mining date of the output it is spending, or any block thereafter.