Skip to content

Conversation

furszy
Copy link
Member

@furszy furszy commented Jun 20, 2022

As AddToSpends is only called from AddToWallet and LoadToWallet, places where we insert the wtx into the wallet map, we can directly feed AddToSpends with the wtx and remove another extra lookup.

This method is only called from AddToWallet and LoadToWallet,
places where we already have the wtx.
@furszy furszy force-pushed the 2022_wallet_AddToSpends_extra_wtx_lookup branch from 89e5822 to 32e5edc Compare June 20, 2022 17:23
@laanwj
Copy link
Member

laanwj commented Jun 20, 2022

Code review ACK 32e5edc

Copy link
Contributor

@theStack theStack left a 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

@DrahtBot
Copy link
Contributor

DrahtBot commented Jun 20, 2022

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

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #25297 (wallet: speedup transactions sync, rescan and load not flushing to db constantly by furszy)
  • #22693 (RPC/Wallet: Add "use_txids" to output of getaddressinfo by luke-jr)

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.

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.

Code Review ACK 32e5edc

Copy link
Contributor

@brunoerg brunoerg left a comment

Choose a reason for hiding this comment

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

crACK 32e5edc

@achow101
Copy link
Member

ACK 32e5edc

@achow101 achow101 merged commit 174b821 into bitcoin:master Jun 22, 2022
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Jun 22, 2022
@furszy furszy deleted the 2022_wallet_AddToSpends_extra_wtx_lookup branch May 27, 2023 01:50
@bitcoin bitcoin locked and limited conversation to collaborators May 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants