rpc: allow multiple data outputs #35637

pull tuna4ll wants to merge 1 commits into bitcoin:master from tuna4ll:rpc/allow-multiple-data-outputs changing 5 files +47 −18
  1. tuna4ll commented at 9:30 PM on July 1, 2026: none

    Context

    Transaction creation RPCs currently reject more than one data output. This restriction prevents callers from creating transactions with multiple OP_RETURN outputs.

    Changes

    • Allow multiple data outputs in ParseOutputs().
    • Preserve each data output's corresponding payload.
    • Keep duplicate Bitcoin address rejection unchanged.
    • Update the RPC help text.
    • Add functional coverage for multiple data outputs in createrawtransaction and createpsbt.
    • Update the bumpfee test to reflect the new behavior.

    Testing

    rpc_rawtransaction.py 
    rpc_psbt.py           
    wallet_bumpfee.py     
    

    Both data outputs are verified against their expected scripts:

    6a01aa
    6a01bb
    

    Fixes #32478

  2. rpc: allow multiple data outputs 5726a2497d
  3. DrahtBot added the label RPC/REST/ZMQ on Jul 1, 2026
  4. DrahtBot commented at 9:30 PM on July 1, 2026: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--006a51241073e994b41acfe9ec718e94-->

    Code Coverage & Benchmarks

    For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/35637.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline for information on the review process. A summary of reviews will appear here.

    <!--5faf32d7da4f0f540f40219e4f7537a3-->

  5. maflcko commented at 7:40 AM on July 2, 2026: member
  6. maflcko closed this on Jul 2, 2026


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-07-02 08:50 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me