Timechain
Search Donate
Sponsors
Cake Wallet, private Bitcoin and Monero walletSideShift.ai, no-signup crypto exchangeOrangeRock, non-custodial bitcoin spot and perps tradingBraiins Hashpower, buy and sell Bitcoin hashrateLayer Two Labs, drivechains for Bitcoin
BIP 113

Median time-past as endpoint for lock-time calculations

Deployed Activated soft fork Consensus (soft fork) Specification Assigned 2015-08-10

Lock times measured against median-time-past instead of a miner-chosen timestamp.

Plain-English summary by Bitcoin Takeover, based on the BIP text.
From the BIP’s abstract

This BIP is a proposal to redefine the semantics used in determining a time-locked transaction's eligibility for inclusion in a block. The median of the last 11 blocks is used instead of the block's timestamp, ensuring that it increases monotonically with each block.

Read BIP 113 on GitHubFind in explorer

Activated on mainnet

CSV · Relative timelocks — block 419,328, 2016-07-04.

“Spendable N blocks after this coin confirmed” (relative timelocks) plus median-time-past for lock times. Lightning's penalty and timeout paths rely on it.

BIP 9 version bits — the first BIP 9 deployment

In Bitcoin Core

Median time past lock-time calculations have been implemented since v0.12.1, and has been buried since v0.19.0.

0:000:00