Fixes #30541
This PR aims to improve scriptpubkeyman
target to avoid timeouts. The input provided in #30541 takes too much time to run because it basically calls only MarkUnusedAddresses
(300 times * number of spks). The following changes were made to improve it:
- Reduce keypool size.
- When calling
MarkUnusedAddresses
, do it with one of the spks per iteration. - Remove the specific
AddDescriptorKey
call since it is already covered withAddWalletDescriptor
. - Limit number of iterations to a reasonable value.