BIP54: correct the block interval figure in footnote 4 #2341

pull treib-holdings wants to merge 1 commits into bitcoin:master from treib-holdings:bip54-footnote-4 changing 1 files +1 −1
  1. treib-holdings commented at 4:23 PM on November 2, 2026: contributor

    Footnote 4 says a two-hour grace period instead of ten minutes "only reduces the expected block interval time under attack by ~2.2 seconds", and points to the grace period summary post. That post gives one block every 599.9997 seconds with a ten-minute grace and 596.7211 seconds with two hours, from Pieter Wuille's simulation. The difference is 3.28 seconds. The post's ~0.1% and ~0.65% block rate figures also come to about 3.3 seconds.

    I got the same result independently. A simulation of the attack using Bitcoin Core's retarget arithmetic gives 599.71 and 596.43 seconds (3.27 s), and the closed form (7200 - 600) / 2016 gives 3.27 s.

    This changes ~2.2 to ~3.3. The rationale is unaffected: the two-hour grace still only trivially worsens the block rate under attack.

  2. BIP54: footnote 4, the two-hour grace costs ~3.3 seconds a block, not ~2.2 21a14624b0
  3. jonatack added the label Fixups on Nov 2, 2026
  4. jonatack approved
  5. jonatack commented at 4:27 PM on November 2, 2026: member

    ACK, thanks for the correction

  6. jonatack commented at 4:28 PM on November 2, 2026: member

    cc BIP author @darosior

  7. treib-holdings commented at 5:01 PM on November 30, 2026: contributor

    @darosior, a gentle ping on this one when you have a minute. It is a one-number change in footnote 4, ~2.2 to ~3.3 seconds, and the working is in the description. Nothing else in the BIP is touched.

  8. jonatack commented at 10:38 PM on December 2, 2026: member

    re-ACK

    <details><summary>re-verified by Gemini 4 Neon (high) via Antigravity</summary><p>

    Ran fetch PR #2341 diff · Exited with code 6 Searched "bitcoin/bips/pull/2341" OR "BIP54: correct the block interval figure in footnote 4" Searched delvingbitcoin.org for "great-consensus-cleanup-revival" "599.9997" OR "596.7211" Searched delvingbitcoin.org for "timewarp-attack-600-second-grace-period" sipa simulation 600 7200 Ran fetch PR #2341 diff Ran fetch PR #2341 metadata Ran fetch Delving Bitcoin post 710/66 Ran fetch Delving Bitcoin post 1326/32 Ran fetch PR #2341 changed files Ran fetch PR #2341 comments Ran fetch PR #2341 reviews Ran fetch PR #2341 commits Ran fetch Delving Bitcoin topic 1326 around post 32 Ran parse Delving Bitcoin thread 1326 posts · Exited with code 1 Ran fetch BIP 54 markdown source Analyzed output.txt:L60-250 Ran parse Delving Bitcoin thread 1326 posts · Exited with code 1 Ran extract posts 28-43 from Delving Bitcoin thread 1326 Analyzed output.txt:L50-147 Ran run analytical check and Monte Carlo simulation Ran compute exact moments and high-precision simulation Ran compute exact analytical steady-state block intervals Ran check BIP 54 for related figures and mentions

    Verdict: Correct (ACK). The one-line change in bip-0054.md (~2.2 seconds → ~3.3 seconds) is mathematically sound, matches the cited source, and has no side effects elsewhere in the BIP.

    Diff Reviewed (21a14624)

    In bip-0054.md (footnote [^4]):

    -interval time under attack by ~2.2 seconds. See [this post][grace period debate summary] for more.
    +interval time under attack by ~3.3 seconds. See [this post][grace period debate summary] for more.
    

    Verification

    1. Consistency with cited sources

      • Footnote 4 cites Antoine Poinsot's grace period debate summary, which quotes Pieter Wuille's simulation:
        • 10-minute grace period (G = 600 s): 599.9997 s per block
        • 2-hour grace period (G = 7200 s): 596.7211 s per block
        • Difference: 599.9997 − 596.7211 = 3.2786 s → ~3.3 seconds (the original ~2.2 appears to have been a subtraction/typo slip).
      • That post's block-rate figures (~0.1% vs ~0.65% increase relative to the unattacked Bitcoin steady-state interval 1209600 / 2014 = 600.5958 s) also correspond to 0.0994% and 0.6493%, a ~3.28 s interval reduction.
    2. Independent analytical verification

      • Under the worst-case 100%-hashrate timewarp strategy with grace period $G$ and target period $P = 2016 \times 600 = 1{,}209{,}600\text{ s}$, the observed period duration is $X_n + G$ where $X_n = Y_n / r_n$ and $Y_n \sim \operatorname{Gamma}(2016, 1)$ (representing 2016 blocks mined at rate $r_n$).
      • The steady-state block rate follows the linear recurrence $r_{n+1} = (Y_n + G r_n) / P$, giving $\mathbb{E}[r] = 2016 / (P - G)$ and exact stationary expected block interval $\mathbb{E}[T] = \mathbb{E}[1/r]$ (accounting for Erlang asymmetry / Jensen's inequality):
        • G = 600 s: 1 / E[r] = 599.7024 s, exact E[T] = 599.999705 s
        • G = 7200 s: 1 / E[r] = 596.4286 s, exact E[T] = 596.721059 s
        • Exact reduction: 3.278645 s → ~3.3 seconds.
      • Neither the 2-hour future-timestamp limit (cancels out between t_{2016p+2015} and t_{2016p} in steady state), the MTP rule (at most ~335 s across 2014 middle blocks), nor BIP 54's second rule (T_N >= T_{N-2015}) alters this steady-state figure.
    3. Minor note on the PR description (does not affect the diff)

      • The PR description's independent figures (599.71 s and 596.43 s, diff 3.27 s) match the deterministic / inverse-mean-rate values (P - G) / 2016 (599.7024 s and 596.4286 s, diff 6600 / 2016 = 3.2738 s), i.e., without the ~0.298 s Erlang asymmetry term. Because that offset nearly cancels in the difference (3.2738 s vs 3.2786 s), both round to ~3.3 seconds.
    4. Scope & cleanliness

      • No other occurrences of ~2.2 or conflicting interval figures appear elsewhere in bip-0054.md.
      • Formatting, line length, and precision (~X.X) match the surrounding text; normative specification and rationale are unaffected.

        </p></details>

  9. jonatack merged this on Dec 2, 2026
  10. jonatack closed this on Dec 2, 2026

Labels

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bips. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-12-03 01:42 UTC