BIP 54 proposes that the first block of each 2,016-block difficulty period (height divisible by 2,016) must have a timestamp no earlier than 7,200 seconds (two hours) before the timestamp of the block immediately preceding it, which the BIP gives as its fix for the timewarp attack.
Sources and checks
T1BIP 54, Consensus CleanupBIP, says this directly
The former is fixed by preventing the timestamp of the first block of a difficulty period from being lower than the previous block's, with a two-hour grace period.
Rationale, read 2026-11-20
T2Bitcoin Optech topic, Consensus cleanup soft forkBitcoin Optech, background
permits a majority hashrate attacker to arbitrarily increase block cadence.
Topic summary, time warp, read 2026-11-20
Checked at block 976,753, 20 Nov 2026, 16:42 UTC: quotes 2/2
History
Nothing is edited silently; every revision keeps what it replaced.
- 20 Nov 2026, 16:42 UTCblock 976,753
Published Revision 1, run 2026-11-20-seed-proof-of-work