Skip to content

Review finding: the P2MR policy table in bitcoin-core-differences.md is stale #330

Closed

Description

@kiwidream

Summary

User docs on P2MR standard policy are stale (missing 1 MiB rule; wrong weight charge).

Severity: low. Found in the 2026-11-04 review of the v1.0.1 change set (all 1.x.x merges since v1.0.0 plus the open PRs that target it), against 1.x.x 21fee6ee8e; area: #263, #264.

Observed

Confidence: confirmed.

Impact

Operator and integrator guidance should match implemented behavior. Integrators sizing P2MR scripts from this page would mis-budget validation weight and miss the new rejection reason.

Suggested fix

Add "Maximum P2MR v1 runtime stack + alt-stack bytes after each opcode | 1 MiB (policy; Standard P2MR stack byte limit exceeded)" to the table. Change 3,730 to 3,683, noting the testnet4 pre-60,000 legacy rule. In #181, reword the #163 bullet to "leaves the signing planner does not recognize".

Related: new. The #181 "Behavior changes" bullet documents the rule itself correctly.

Activity

  1. added
    documentation
    on Nov 4, 2026
  2. kiwidream commented on Nov 12, 2026

    @kiwidream
    MemberAuthor

    Fixed on 1.x.x by #181 (29c0ec9b6c):

    • doc/user/bitcoin-core-differences.md now has the 1 MiB main stack plus alt-stack row in the policy table, with the reject reason Standard P2MR stack byte limit exceeded.
    • The data-signature charge there is now 3,683 units, with the testnet4 rule for blocks below height 60,000 (3,730).
    • The wallet: batch P2MR counters across mixed descriptors #163 entry in the v1.0.1 notes now says "leaves the signing planner does not recognize".

    Closing by hand, because a merge into 1.x.x does not close issues automatically.

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

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions