Commit 174b821
committed
Merge bitcoin#25427: wallet: remove extra wtx lookup in AddToSpends
32e5edc wallet: avoid extra wtx lookup in AddToSpends (furszy)
Pull request description:
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.
ACKs for top commit:
laanwj:
Code review ACK 32e5edc
achow101:
ACK 32e5edc
theStack:
Code-review ACK 32e5edc
w0xlt:
Code Review ACK bitcoin@32e5edc
brunoerg:
crACK 32e5edc
Tree-SHA512: e9fb8df44c3e3fa26c107d261bf78e45014b4755890a64817f2be62ee6b7751f5dd2813a18dcb103a21ddba1422f9d2d59c4bf186f08314e634365d36b01be8f2 files changed
+7
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
663 | 663 | | |
664 | 664 | | |
665 | 665 | | |
666 | | - | |
| 666 | + | |
667 | 667 | | |
668 | | - | |
669 | | - | |
670 | | - | |
671 | | - | |
| 668 | + | |
672 | 669 | | |
673 | 670 | | |
674 | | - | |
675 | | - | |
| 671 | + | |
| 672 | + | |
676 | 673 | | |
677 | 674 | | |
678 | 675 | | |
| |||
967 | 964 | | |
968 | 965 | | |
969 | 966 | | |
970 | | - | |
| 967 | + | |
971 | 968 | | |
972 | 969 | | |
973 | 970 | | |
| |||
1066 | 1063 | | |
1067 | 1064 | | |
1068 | 1065 | | |
1069 | | - | |
| 1066 | + | |
1070 | 1067 | | |
1071 | 1068 | | |
1072 | 1069 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
265 | | - | |
| 265 | + | |
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| |||
0 commit comments