Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

bitcoin-package-relay

БесплатноБез исполняемых скриптовНе проверен

Package relay and the mempool policy Bitcoin Core actually ships: opportunistic 1p1c relay, package validation, cluster limits, submitpackage RPC, package…

claude-dev-suiteот claude-dev-suite★ 51 звезда на GitHub

Об этом скилле

Package Relay

Package = a set of related transactions (typically parent + child) that mempool evaluates atomically. Historically the mempool processed one tx at a time, which broke CPFP when a parent was below mempool min fee rate.

Status and deployment timeline (as of September 2026)

BIP331 "Ancestor Package Relay" is still Status: Draft and has never been deployed. Its sendpackages / pkgtxns P2P messages do not exist in Bitcoin Core. What Core ships is a narrower, opportunistic 1-parent-1-child (1p1c) scheme carried over the existing transaction relay protocol, plus local package submission via RPC:

Release What landed
26.0 (December 2023) submitpackage RPC - local submission only, no P2P package relay
28.0 (October 2024) Opportunistic 1p1c relay over the existing tx relay protocol; TRUC v3 (BIP431) standard; Pay-to-Anchor (BIP433) standard output type; limited package RBF
29.0 (April 2025) Ephemeral dust: one dust output allowed if the tx is zero fee and the dust is spent alongside it
30.0 (October 2025) 1p1c handles a child that already has unconfirmed parents in the mempool; submitpackage no longer requires every unconfirmed parent to be present
31.0 (April 2026) Cluster mempool; the 1p1c parent may be below -minrelaytxfee, even 0 fee, for non-TRUC packages too

Core 28.0's release notes warn that the P2P feature is limited (a child with multiple unconfirmed parents was not supported then) and "not yet reliable under adversarial conditions".

BIP431 (TRUC) and BIP433 (P2A) are likewise Draft - but unlike BIP331 the policy they describe did ship as standard in Core 28.0.

Latest release line as of September 2026: Bitcoin Core 31.1 (July 2026).

Why packages

Pre-package relay:

  • Parent tx P with fee rate X submitted; if X < mempool min, P is rejected.
  • Child C spending P's output, even at high fee rate, cannot rescue P because mempool evaluates C alone, can't find its parent.

Post-package relay:

  • Submit P + C atomically via submitpackage.
  • Mempool computes the package effective fee rate (fee_P + fee_C) / (vsize_P + vsize_C).
  • If above mempool min, both accepted.

submitpackage RPC

bitcoin-cli submitpackage '["<rawtx_parent_hex>", "<rawtx_child_hex>"]'

Returns per-tx result: accepted / rejected with reason. Atomic: if any tx in package fails, none are accepted. This is a local submission path; it does not make the package propagate any better than opportunistic 1p1c relay does.

Package validation rules (selected)

  1. All txs share at least one ancestor or descendant relationship within the package.
  2. Package count ≤ 25 txs and total package weight ≤ 404,000 WU, and the resulting mempool cluster must stay within the cluster limits (below). TRUC v3 has its own ≤10 kvB limit per tx.
  3. No tx in package conflicts with another (no shared inputs).
  4. Package effective fee rate ≥ mempool min fee.
  5. Package CPFP allowed: a high-fee child can carry a low-fee parent.
  6. Packages submitted to the mempool must be child-with-parents: exactly one child plus some of its unconfirmed parents, nothing else (doc/policy/packages.md, as of Bitcoin Core 31.1, July 2026).

Mempool topology limits (default)

Since the cluster mempool rewrite in Core 31.0 (April 2026), the mempool no longer enforces ancestor or descendant count/size limits. They are replaced by cluster limits, where a cluster is a connected component of the mempool's parent/child graph:

  • 64 transactions per cluster.
  • 101 kvB total virtual size per cluster.

History - up to and including Core 30.x the limits were 25 unconfirmed ancestors, 25 unconfirmed descendants and 101 kvB of ancestor or descendant size. Code and docs written against that model still assume -limitancestorcount / -limitdescendantcount semantics.

Either way these are policy limits (mempool admission only), not consensus.

Core 31.0 also removed the CPFP carve-out; TRUC plus sibling eviction is the intended replacement for the use cases that relied on it.

TRUC v3 (BIP431) interaction

TRUC v3 imposes stricter rules to prevent pinning:

  • ≤ 1 unconfirmed ancestor (which must also be v3).
  • ≤ 1 unconfirmed descendant.
  • ≤ 10 kvB tx size.
  • Sibling eviction: a v3 child can replace a sibling without paying for the sibling's bandwidth (mitigates pinning).

Combined with P2A anchors and ephemeral dust (below), this creates a non-pinnable fee-bumping primitive specifically for Lightning commitment txs.

Pay-to-Anchor (P2A, BIP433)

Standard output type since Core 28.0 (October 2024); specified as BIP433 (Status: Draft, Informational, author Gregory Sanders).

scriptPubKey = OP_1 <0x4e73>       # witness v1, 2-byte program
addresses    = bc1pfeessrawgf     (mainnet)
               tb1pfees9rn5nz     (public testnets)
               bcrt1pfeesnyr2tx   (regtest)
dust limit   = 240 sat
  • Keyless:
Полный SKILL.md на GitHub

Установить bitcoin-package-relay в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Grep
Glob

FAQ

Что делает скилл bitcoin-package-relay?

Package relay and the mempool policy Bitcoin Core actually ships: opportunistic 1p1c relay, package validation, cluster limits, submitpackage RPC, package CPFP, sibling eviction with TRUC v3 (BIP431), P2A anchors (BIP433) and ephemeral dust. Critical for Lightning fee bumping and any multi-tx workflow. USE WHEN: implementing CPFP, designing fee-bump strategies, debugging "why won't my child confirm", reasoning about Lightning anchor pinning.

Как установить скилл bitcoin-package-relay?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл bitcoin-package-relay запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить bitcoin-package-relay с