Skip to content

Conversation

brunoerg
Copy link
Contributor

This PR adds fuzz coverage for the scriptpubkeyman migration (MigrateToDescriptor). Note that it's a test for the migration of the scriptpubkey manager, not for the whole migration process as tried in #29694, because:

  1. The wallet migration deals with DBs which is expensive for fuzzing (was getting around 3 exec/s);
  2. Mocking would require lots of refactors.

This target loads keys, HDChain (even inactive ones), watch only and might add tons of different scripts, then calls MigrateToDescriptor. It does not play with encrypted stuff because it would make the target super slow. Also, after the migration there are some assertions that would work as a regression test for #31452, for example.

@DrahtBot
Copy link
Contributor

DrahtBot commented May 27, 2025

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

Code Coverage & Benchmarks

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

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK maflcko
Approach ACK w0xlt

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

@brunoerg brunoerg force-pushed the 2025-05-fuzz-spkm-migration branch from 08b574d to 5f2fb4d Compare May 27, 2025 12:55
@brunoerg
Copy link
Contributor Author

08b574d..5f2fb4d: Address #32624 (comment)

Copy link
Contributor

@w0xlt w0xlt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approach ACK

@brunoerg brunoerg requested a review from maflcko June 5, 2025 21:39
@brunoerg brunoerg force-pushed the 2025-05-fuzz-spkm-migration branch from 5f2fb4d to 73439a7 Compare June 16, 2025 17:11
@brunoerg brunoerg force-pushed the 2025-05-fuzz-spkm-migration branch from 73439a7 to 6d29c9a Compare June 17, 2025 16:12
@maflcko
Copy link
Member

maflcko commented Jun 17, 2025

lgtm ACK 6d29c9a

@DrahtBot DrahtBot requested a review from w0xlt June 17, 2025 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants