Commit ea53568
committed
Merge bitcoin/bitcoin#31393: refactor: Move GuessVerificationProgress into ChainstateManager
facb4d0 refactor: Move GuessVerificationProgress into ChainstateManager (MarcoFalke)
Pull request description:
Currently the function is standalone, which means any passed-in data like `TxData` or the block pointer needs to be taken from the `ChainstateManager` and passed in. This is currently verbose and may become even more verbose if the function is reworked in the future. As the function can not be called without a `ChainstateManager` in production code anyway, make it a member function on the class.
ACKs for top commit:
ryanofsky:
Code review ACK facb4d0. Nice cleanup, that should make this code less awkward to work with
TheCharlatan:
ACK facb4d0
danielabrozzoni:
reACK facb4d0
Tree-SHA512: b17977e12cd7c6e308c47e6a1aa920acecd4442696e46d1f30bd7c201e9898ca2d581ff0bf2cc9f7334e146c1b0c50925adb849c8c17f65dcdf6877be1c5f776File tree
5 files changed
+22
-21
lines changed- src
- node
- rpc
5 files changed
+22
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1827 | 1827 | | |
1828 | 1828 | | |
1829 | 1829 | | |
1830 | | - | |
| 1830 | + | |
1831 | 1831 | | |
1832 | 1832 | | |
1833 | 1833 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
327 | | - | |
| 327 | + | |
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
409 | | - | |
| 409 | + | |
410 | 410 | | |
411 | | - | |
| 411 | + | |
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
| |||
639 | 639 | | |
640 | 640 | | |
641 | 641 | | |
642 | | - | |
643 | | - | |
| 642 | + | |
| 643 | + | |
644 | 644 | | |
645 | 645 | | |
646 | 646 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1336 | 1336 | | |
1337 | 1337 | | |
1338 | 1338 | | |
1339 | | - | |
| 1339 | + | |
1340 | 1340 | | |
1341 | 1341 | | |
1342 | 1342 | | |
| |||
3338 | 3338 | | |
3339 | 3339 | | |
3340 | 3340 | | |
3341 | | - | |
| 3341 | + | |
3342 | 3342 | | |
3343 | 3343 | | |
3344 | 3344 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2983 | 2983 | | |
2984 | 2984 | | |
2985 | 2985 | | |
| 2986 | + | |
2986 | 2987 | | |
2987 | 2988 | | |
2988 | | - | |
2989 | 2989 | | |
2990 | 2990 | | |
2991 | 2991 | | |
| |||
2997 | 2997 | | |
2998 | 2998 | | |
2999 | 2999 | | |
3000 | | - | |
| 3000 | + | |
3001 | 3001 | | |
3002 | 3002 | | |
3003 | 3003 | | |
| |||
3008 | 3008 | | |
3009 | 3009 | | |
3010 | 3010 | | |
3011 | | - | |
3012 | | - | |
3013 | 3011 | | |
3014 | 3012 | | |
3015 | 3013 | | |
3016 | 3014 | | |
3017 | 3015 | | |
3018 | 3016 | | |
3019 | | - | |
| 3017 | + | |
3020 | 3018 | | |
3021 | 3019 | | |
3022 | 3020 | | |
| |||
3031 | 3029 | | |
3032 | 3030 | | |
3033 | 3031 | | |
3034 | | - | |
| 3032 | + | |
3035 | 3033 | | |
3036 | 3034 | | |
3037 | 3035 | | |
| |||
3042 | 3040 | | |
3043 | 3041 | | |
3044 | 3042 | | |
3045 | | - | |
| 3043 | + | |
3046 | 3044 | | |
3047 | 3045 | | |
3048 | 3046 | | |
| |||
4720 | 4718 | | |
4721 | 4719 | | |
4722 | 4720 | | |
4723 | | - | |
| 4721 | + | |
4724 | 4722 | | |
4725 | 4723 | | |
4726 | 4724 | | |
| |||
5611 | 5609 | | |
5612 | 5610 | | |
5613 | 5611 | | |
5614 | | - | |
5615 | | - | |
| 5612 | + | |
| 5613 | + | |
| 5614 | + | |
| 5615 | + | |
5616 | 5616 | | |
| 5617 | + | |
5617 | 5618 | | |
5618 | 5619 | | |
5619 | 5620 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | 98 | | |
102 | 99 | | |
103 | 100 | | |
| |||
1151 | 1148 | | |
1152 | 1149 | | |
1153 | 1150 | | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
1154 | 1154 | | |
1155 | 1155 | | |
1156 | 1156 | | |
| |||
0 commit comments