Enforce Core-compatible OP_RETURN / datacarrier and standard tx-size limits in create_tx
Les mainteneurs répondent en général sous 3 jours
@tvpeter y travaille déjà.
Depuis le 26/9/2026.
Évaluation
Cette issue n'a pas encore été évaluée.
Description
Describe the enhancement
wallet create_tx can attach an OP_RETURN via --add_string / --add_data, but does not implement Bitcoin Core relay policy for:
how large that OP_RETURN script may be (datacarrier)
how large the resulting transaction may be (MAX_STANDARD_TX_WEIGHT)
The documentation says “max 80 bytes”, which matches the pre-v30 Core default. That limit is not actually enforced, and it is no longer the Core default.
A tx that create_tx successfully creates can be non-standard and fail at broadcast against default Core / most public relays.
Use case
Anyone embedding data with --add_string or --add_data currently will discover the problem only at broadcast, after building and signing. Failing at build time with a clear error about the tx weight and the limit will make it easier for users to reconstruct a transaction that can be relayed on the network.
The same check protects bump_fee, where a fee bump can push an already-large transaction over the limit, and any command whose inputs grow the witness.
Additional context
Split out of #326, which fixed the create_tx/bump_fee panics and --fee_rate truncation.
- Langage dominant
- Rust
- Étoiles
- 142
- Forks
- 99
- Merge moyen
- 4 j 1 h
- PR mergées (30 j)
- 3
Préparer son environnement
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de bitcoindevkit/bdk-cli
-
enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
bitcoindevkit/bdk-cli#332 · 2 commentaires ·
Les mainteneurs répondent en général sous 3 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
bitcoindevkit/bdk-cli#330 ·
Les mainteneurs répondent en général sous 3 jours
-
Crate chacha20 0.10.1 is yankedOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
bitcoindevkit/bdk-cli#318 ·
Les mainteneurs répondent en général sous 3 jours
-
bug
Difficulté 4/5 3-5 jours Accessibilité débutants 50/100
bitcoindevkit/bdk-cli#340 · 1 commentaire ·
Les mainteneurs répondent en général sous 3 jours
-
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
bitcoindevkit/bdk-cli#338 ·
Les mainteneurs répondent en général sous 3 jours
Toutes les issues de bitcoindevkit/bdk-cli
Issues similaires
-
backend::vllm diffusion multimodal
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
lambdaclass/ethrex#7329 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
shadowsocks/shadowsocks-rust#2186 · 1 commentaire ·
-
[Chore]: Inconsistent wasm-pack binary invocation in justfile breaks cross-platform executionOuverteC-bug S-awaiting-triage
Difficulté 1/5 Moins d'une heure Accessibilité débutants 92/100
juspay/hyperswitch#14479 ·
Les mainteneurs répondent en général sous 1 jour