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:
- The wallet migration deals with DBs which is expensive for fuzzing (was getting around 3 exec/s);
- 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.