Skip to content

Add ReadList helper#285

Draft
ViniciusCestarii wants to merge 5 commits into
bitcoin-core:masterfrom
ViniciusCestarii:add-readlist-helper
Draft

Add ReadList helper#285
ViniciusCestarii wants to merge 5 commits into
bitcoin-core:masterfrom
ViniciusCestarii:add-readlist-helper

Conversation

@ViniciusCestarii
Copy link
Copy Markdown
Contributor

Based on 9de4b88

Follow up of #277 (review). This adds ReadList helper and uses it to dedup the CustomReadField implementations for std::map, std::set, std::unordered_set, and std::vector, mirroring the existing BuildList helper on the build side.

I took the liberty of adding the commit f2a734a "type: reserve first when reading std::unordered_set" so it reserves the correct capacity first and then emplaces the values.

@DrahtBot
Copy link
Copy Markdown

DrahtBot commented Jun 3, 2026

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

Reviews

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants