]> Untitled Git - bdk-cli/commit
fix(create_tx,bump_fee): reject txs over the standard weight limit
authorVihiga Tyonum <withtvpeter@gmail.com>
Mon, 19 Oct 2026 19:09:25 +0000 (20:09 +0100)
committerVihiga Tyonum <withtvpeter@gmail.com>
Wed, 4 Nov 2026 15:39:53 +0000 (16:39 +0100)
commit6858e2188e98c23ec5fad58c9c247b5154b46a5a
tree10033ba0420973885669196da1d50c6e30c62d76
parent22304652f99e33f22d97a75b549be59c8bbb8283
fix(create_tx,bump_fee): reject txs over the standard weight limit

create_tx` could build transactions over Bitcoin Core's 400,000 wu
`MAX_STANDARD_TX_WEIGHT`, which no default node relays. The `--add_data`
and `--add_string` docs claimed an 80 byte limit that was never enforced
and is no longer Core's default. These changes:

- Enforce 400k WU limit across `create_tx`, `create_dns_tx`, `bump_fee`,
  and `create_sp_tx`.
- Estimate PSBT weight using `max_weight_to_satisfy` per input for
  unsigned flows (`create_tx`, `create_dns_tx`, `bump_fee`, `create_sp_tx`).
- Update `--add_data` and `--add_string` docs to remove references to
  the deprecated 80-byte data limit. Bitcoin Core v30+ evaluates weight
  limits prior to data carrier limits.
CHANGELOG.md
src/error.rs
src/handlers/dns/mod.rs
src/handlers/offline.rs
src/utils/common.rs
tests/integration/online.rs