Repository navigation
Commit 3c52b1d
committed
Merge #7856: backport: bitcoin#26889: refactor: wallet, remove global 'ArgsManager' dependency
6f39d88 Merge bitcoin#26889: refactor: wallet, remove global 'ArgsManager' dependency (Konstantin Akimov)
f7c864d refactor: drop coinjoin_loader from WalletContext and loader factories (Konstantin Akimov)
f899d9a refactor: drop coinjoin_loader from CWallet constructor (Konstantin Akimov)
66d6b7f refactor: expose CoinJoin loader through interfaces::Chain (Konstantin Akimov)
c25b960 refactor: register wallets with CoinJoin only in AddWallet (Konstantin Akimov)
Pull request description:
## Issue being fixed or feature implemented
CWallet has extra argument coinjoin_loader in its ctor and it makes pain when doing backports due to more than 100 usages spread all over code bases and it causes conflicts when doing backport.
## What was done?
- fixed double call of registration in CWallet::Create in the freshly loaded wallet: with the CoinJoin client manager and AddWallet registered it again
- expose CoinJoin loader through interfaces::Chain
- drop coinjoin_loader from CWallet constructor
- drop coinjoin_loader from WalletContext and loader factories
- backport bitcoin#26889 - king of conflicts.
Backport bitcoin#26889 is touching _every_ line what had caused conflicts due to extra argument in CWallet constructor, this PR has all important prerequisites to make its merge easier.
NOTE: some chunks of 26889 is omitted because this code is not backported yet [including taproot's related], some other quite opposite added. Though, 26889 is not partial and done in full because compiler enforces missing changes to update: remove gArgs / m_args if they will be added later by other commits.
## How Has This Been Tested?
Run unit & regressions tests.
## Breaking Changes
N/A
## Checklist:
- [x] I have performed a self-review of my own code
- [ ] I have made corresponding changes to the documentation
- [x] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_
Top commit has no ACKs.
Tree-SHA512: 833aaf5c700e19345b172c7aa326d37d37ed12b1646fe274dba47eb9928ea481fd94afe8282e5a8d0e02e14d56a00bc07f0fcd0326990ea1135fe7724445026450 files changed
Lines changed: 202 additions & 232 deletions
File tree
- src
- bench
- init
- interfaces
- node
- qt
- test
- test/util
- wallet
- rpc
- test
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
100 | | - | |
| 99 | + | |
101 | 100 | | |
102 | 101 | | |
103 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
| |||
181 | 184 | | |
182 | 185 | | |
183 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
184 | 191 | | |
185 | 192 | | |
186 | 193 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
0 commit comments