Bounds on chain length with BIP-54 timewarp fixes

Posted by sipa

Sep 18, 2026/01:28 UTC

The proposal to replace the existing two BIP-54 timewarp rules with a monotonic timestamp requirement seeks to simplify the proof process for blockchain difficulty adjustments by eliminating the allowance of negative solvetimes, which currently enables the Difficulty Adjustment Algorithm (DAA) to perceive "negative work" and subsequently lower the difficulty. This change could ensure that timestamps always move forward, thereby potentially stabilizing the mining process by disallowing periods where time effectively moves backward.

The mathematical implications of implementing a monotonic timestamp rule are significant yet subtle. The proposed formula for calculating the upper bound on block length under this new rule would be $$ u(t,w) \approx \frac{t}{600} + 1397.385\log_2 w - 57830.9 $$ blocks. This represents a minor adjustment from the current BIP-54 formula, which is $$ u(t,w) \approx \frac{t}{596.4285} + 1405.753\log_2 w - 58189.3 $$. The difference in maximum chain lengths between these two formulas is approximately 0.6%, equating to around 7200 seconds over a two-week period. This comparative analysis highlights that while the impact of such a change might seem minor numerically, it could have meaningful effects on the blockchain's operational stability and security.

Link to Raw Post
Bitcoin Logo

TLDR

Join Our Newsletter

We’ll email you summaries of the latest discussions from high signal bitcoin sources, like bitcoin-dev, lightning-dev, and Delving Bitcoin.

Explore all Products

ChatBTC imageBitcoin searchBitcoin TranscriptsSaving SatoshiDecoding BitcoinWarnet
Built with 🧡 by the Bitcoin Dev Project
View our public visitor count

We'd love to hear your feedback on this project.

Give Feedback