-
Notifications
You must be signed in to change notification settings - Fork 38k
wallet: remove extra wtx lookup in AddToSpends #25427
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 extra wtx lookup in AddToSpends #25427
Conversation
This method is only called from AddToWallet and LoadToWallet, places where we already have the wtx.
89e5822
to
32e5edc
Compare
Code review ACK 32e5edc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code-review ACK 32e5edc
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review ACK 32e5edc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
crACK 32e5edc
ACK 32e5edc |
As
AddToSpends
is only called fromAddToWallet
andLoadToWallet
, places where we insert the wtx into the wallet map, we can directly feedAddToSpends
with thewtx
and remove another extra lookup.