Stale Tip Relay (BIP 332) tracking issue #36833

issue pseudoramdom opened this issue on November 10, 2026
  1. pseudoramdom commented at 10:37 PM on November 10, 2026: contributor

    BIP 332 adds an optional staletip P2P message for announcing recent stale chain tips to peers that negotiated it via BIP 434.

    Full branch: https://github.com/pseudoramdom/bitcoin/tree/bip332-staletip-relay Discussion: https://groups.google.com/g/bitcoindev/c/AwOPNxF15mU

    Plan

    Implementation

    • PR 1 - Local tracking and RPC
      • Validation notification, report cached stale tips in RPC.
      • No P2P change
    • PR 2 - Headers-mode relay
      • staletip message, BIP 434 negotiation.
      • Relays headers only, enough to observe stale rates.
    • PR 3 - Stale-branch blocks
      • Serve available blocks on tracked stale branches
      • -staletips=blocks additionally downloads them, as best-effort requests.
    • Fuzz tests
    • Release note and doc/bips.md entry
    • Update the reference implementation link in the BIP

    Live tests

    Open questions


    Collaborators - @ajtowns @w0xlt

  2. pseudoramdom commented at 8:46 PM on November 17, 2026: contributor

    @ajtowns pointed out that the signet variant rule in BIP 332, and in the current implementation, isn’t enough.

    On signet, BIP 332 treats two blocks as variants when they have the same previous block and header merkle root. The BIP 325 signature doesn’t cover the signet solution, though. So anyone holding one signed block can change the solution and re-grind PoW, which gives them unlimited valid variants. Those can push real stale tips out of the tracker. This only affects signet.

    The fix is to compare the BIP 325 signet merkle root instead of the header merkle root. A follow-up PR will update the BIP and the implementation.

    WIP: https://github.com/pseudoramdom/bitcoin/tree/bip332-signet-state

Contributors

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-11-19 19:51 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me