This PR handles the simplest case, where the unused template function can simply be removed. Other cases need different approaches, as their usage depends on the actual TU they are compiled in. Those are left for follow-ups.
While cleaning up src/test/fuzz/deserialize.cpp, another suggestion has been addressed.
DrahtBot added the label Fuzzing on Jul 7, 2026
DrahtBot
commented at 3:56 PM on July 7, 2026:
contributor
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
l0rinc
commented at 6:11 PM on July 7, 2026:
contributor
ACK8c0c5a0e23314d5918447e43a80c12f7f0720392
It seems only the two-param DeserializeFromFuzzingInput overload is ever used.
maflcko
commented at 6:28 PM on July 7, 2026:
member
Hmm, looks like this is unused since I added it in commit fac81affb52?
In any case, removing makes sense, because ser-params should just be embedded into the object itself, not passed as a separate param.
This works here, because only Serialize is called and that doesn't need to construct a new object. If you want, you can remove Serialize with separate ser-param param completely:
The pull description is completely empty on this. Also, there are no replies to review comments, so I am not sure what the goal here is:
Try to fix the new clang warning? If so, then changes are missing here and this is incomplete?
Try to clean up the fuzz target code? If so, then the changes are also incomplete, because I think if you remove this call to Serialize(obj, params), then the other one should be removed as well: #35679 (comment)
No objection, and this is obviously fine to merge, but it would be better to think about review before opening a pull (or at least putting it in draft).
Also, it would be good to add a short pull description.
This overload has been unused since it was added in fac81affb527132945773a5315bd27fec61ec52f.
efa7f8c143
fuzz, refactor: Remove `Serialize` overload
Serialization parameters should be embedded into the object being
serialized rather than passed as a separate argument. This works here
because only serialization is performed and no new object needs to be
constructed.
afab8d4225
hebasto force-pushed on Jul 16, 2026
hebasto marked this as ready for review on Jul 16, 2026
hebasto added the label Refactoring on Jul 16, 2026
hebasto
commented at 2:24 PM on July 16, 2026:
member
The PR description has been updated.
Feedback from @maflcko has been addressed; his suggestion has been incorporated.
Rebased.
Undrafted.
maflcko
commented at 2:56 PM on July 16, 2026:
member
lgtm ACKafab8d4225c720f8d8658d4ea134505b3d9531f9
DrahtBot requested review from pablomartin4btc on Jul 16, 2026
DrahtBot requested review from l0rinc on Jul 16, 2026
DrahtBot requested review from brunoerg on Jul 16, 2026
brunoerg
commented at 8:43 PM on July 16, 2026:
contributor
reACKafab8d4225c720f8d8658d4ea134505b3d9531f9
frankomosh
commented at 11:48 AM on July 17, 2026:
contributor
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-22 07:50 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me