Since #32406 is merged we can remove the check for multiple data outputs in createrawtransaction and createpsbt rpc.
Keeping this in draft and review is currently not required as this is in milestone 31.0
addresses: #32478
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--006a51241073e994b41acfe9ec718e94-->
For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/32790.
<!--021abf342d371248e50ceaed478a90ca-->
See the guideline for information on the review process.
| Type | Reviewers |
|---|---|
| Concept NACK | luke-jr |
If your review is incorrectly listed, please copy-paste <code><!--meta-tag:bot-skip--></code> into the comment that the bot should ignore.
<!--5faf32d7da4f0f540f40219e4f7537a3-->
The removal of the duplicate "data" key check simplifies the code path for handling data outputs. However, this means that if multiple "data" fields are present in the outputs object, the last one will silently override any previous entries without raising an error. Was this change intended to allow multiple "data" outputs, or is it assumed that input validation elsewhere will prevent duplicates? If not, could you clarify the motivation behind removing this check? Thanks!
If not, could you clarify the motivation behind removing this check? Thanks!
see #32478, we have policy change merged to remove data outputs size. So this check should be removed from the rpc's as well!
Thanks for the pointer to #32478 , that clears it up! Since multiple data outputs are now valid, would it make sense to reflect that in the RPC help text or release notes for clarity? Also, adding a test with multiple data entries could help future-proof this change. Nice cleanup overall!
Concept NACK. Stop trying to enable spam.
fwiw - I think if this is going in to 30.0 it would need some kind of warning to tell users that they may face propagation issues. If it's delayed to 30.1 then a warning probably isn't necessary.
@mikekelly see the comment, this changes will come in the next release 31.0. Will update this one soon and mark it for review.
test: remove assertions for duplicate data parameter from rpc_rawtransaction & wallet_bumpfee
Ready for review.
This did not make the milestone and has not received reviewer attention for some time. I'm not sure, is anybody actually asking for this?