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
dataoutputs inParseOutputs(). - Preserve each
dataoutput's corresponding payload. - Keep duplicate Bitcoin address rejection unchanged.
- Update the RPC help text.
- Add functional coverage for multiple
dataoutputs increaterawtransactionandcreatepsbt. - Update the
bumpfeetest 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