-
Notifications
You must be signed in to change notification settings - Fork 36.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wallet: remove GetScriptPubKeyMan spam #21880
Conversation
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
@S3RK You might be interested in this. |
Going to close this in favour of #19651. @klementtan would you like to review that PR instead? |
Agreed. #19651 is a better solution than this. Will take a look at it. |
fixes: #21716
Problem:
In
AddWalletDescriptor
we iterate through every combination ofinternal/external
andOutputType
. For each combination we callGetScriptPubKeyMan
and when the combination is invalid we would log a warningscriptPubKey Manager for output type
and thus causing the spam in the logs.My approach
Since there is only one
ScriptPubKeyMan
that has the same id asold_spk_man_id
, we would instead iterate through both the map and erase theScriptPubKeyMan
once we find it.The code that causes the spam:
src/wallet/wallet.cpp