1
0
mirror of https://github.com/bitcoin/bips.git synced 2024-11-19 01:40:05 +01:00

BIP68 now assume MTP in all instances

This commit is contained in:
BtcDrak 2015-12-10 20:01:35 +00:00
parent 84779aa5c3
commit 7239c330c7

View File

@ -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 outputs previous block, and ends either at the MTP of the previous block or at the nTime of the transactions 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 outputs previous block, and ends either at the MTP of the previous block or at the nTime of the transactions 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.