Skip to content

v4: port peering's operator surface — on-demand limits, admin relationship view, owner-attested requests #1370

Backlog

Description

@chappie-daemon

Target: v4 (before the #869 cutover). Filed from the v3 delta audit; companion to the ledgers row, and the part of peering that is operator surface rather than billing.

v3 shipped:

PR Date What
#1053 11-05 rate-limit on-demand requests from peers
#1059 11-05 account for peer on-demand requests in admin
#1216 11-23 show relationship state, terms and traffic split in admin
#1233 11-24 owner-attested peering requests, accepted or refused by owner-signed event

Source: src/utils/admin-peering.ts, src/utils/peering-advertisement.ts, src/utils/peering-attestation.ts, src/controllers/admin/get-admin-peering-controller.ts, src/controllers/admin/post-admin-peering-invoice-decision-controller.ts, src/handlers/event-strategies/peering-request-event-strategy.ts, src/handlers/event-strategies/peering-acceptance-event-strategy.ts, and migrations/20261125_120000_create_peering_attestations.js.

v4 today: none of it. The admin console has no peering view and the relay has neither the on-demand limiter nor the attestation strategies — the only peering-shaped code in crates/ is the settings types and the NIP-11 fee object.

Why it is not folded into the ledgers row: this half is an HTTP/console surface plus an event strategy, and the console parity work (#867, merged) had no peering oracle to compare against, so it will not be caught by re-running parity.

Scope: the on-demand limiter with its refusal shape, the in-flight and settled counters the admin view reads, the relationship view (state, terms, traffic split), the request/acceptance event strategies with their owner-signature check, and the console section that shows all of it unmodified against the Rust relay.

Acceptance: a peer over its on-demand limit is refused in the shape v3 refuses with; the console's peering section renders state, terms and split from the Rust relay with no JS change; a request event without a valid owner signature is ignored, and an accepted one changes the relationship state exactly once.

Activity

  1. added
    rewrite
    post-v4
    on Dec 3, 2026
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

    post-v4rewrite

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions