-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Prevent multiple calls to ExtractDestination #7825
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
Prevent multiple calls to ExtractDestination #7825
Conversation
47aeacf to
4a7c2f4
Compare
|
utACK 4a7c2f4 |
|
Concept ACK |
|
ACK 4a7c2f4 To get more people looking at this, please provide some interesting numbers ;-)) |
|
The performance improvement isn't much significant on typical wallets. The main advantage is the reuse of the function |
|
I would add this condition so it is equivalent to before: |
|
@NicolasDorier You are right. Will fix. |
fd70385 to
83153e6
Compare
|
utACK 83153e6 (nit: redeemScript does not appear in the help message.) |
83153e6 to
289bb60
Compare
289bb60 to
0bf6f30
Compare
|
utACK 0bf6f30 |
|
Core-Review utACK 0bf6f30 |
0bf6f30 Prevent multiple calls to ExtractDestination (Pedro Branco)
0bf6f30 Prevent multiple calls to ExtractDestination (Pedro Branco)
Bech32 encoding support and t-addr encoding refactor Cherry-picked from the following upstream PRs: - bitcoin/bitcoin#7922 - bitcoin/bitcoin#7825 - bitcoin/bitcoin#8317 - bitcoin/bitcoin#9804 - Only the commit that changed `base58.cpp` - bitcoin/bitcoin#11117 - bitcoin/bitcoin#11259 - bitcoin/bitcoin#11167 - Only the first three commits (the fourth commit depends on #2390, later ones are SegWit-specific). Part of #3058.
Upstream encoding cleanups Cherry-picked from the following upstream PRs: - bitcoin/bitcoin#7922 - bitcoin/bitcoin#7825 - bitcoin/bitcoin#8317 - bitcoin/bitcoin#9804 - Only the commit that changed `base58.cpp` Precursor to #3202.
Upstream encoding cleanups Cherry-picked from the following upstream PRs: - bitcoin/bitcoin#7922 - bitcoin/bitcoin#7825 - bitcoin/bitcoin#8317 - bitcoin/bitcoin#9804 - Only the commit that changed `base58.cpp` Precursor to #3202.
0bf6f30 Prevent multiple calls to ExtractDestination (Pedro Branco)
Trivial performance improvement.
It consists in preventing multiple calls to
ExtractDestinationin rpc calllistunspent. For an large UTXO set the improvement are more notable.This PR moves the computation of multiple
ExtractDestinationto a single call, and also reorganizes the code of building the JSON result of each UTXO.