Skip to content

Stale Tip Relay (BIP 332) tracking issue #36833

Open

Description

@pseudoramdom

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

Live tests

Open questions


Collaborators - @ajtowns @w0xlt

Activity

  1. pseudoramdom commented on Nov 17, 2026

    @pseudoramdom
    ContributorAuthor

    @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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions