Commit 9a5644a
committed
Merge #6840: refactor: move
6a20464 refactor: `s/CJContext/CJWalletManager/g` (Kittywhiskers Van Gogh)
4f3da68 refactor: drop `m_is_masternode` from `CoinJoinWalletManager` (Kittywhiskers Van Gogh)
5bd1a6b refactor: drop `m_is_masternode` from `CCoinJoinClientQueueManager` (Kittywhiskers Van Gogh)
1a35a65 refactor: drop `mn_activeman` from `CJContext` (Kittywhiskers Van Gogh)
80c201b refactor: make `CJContext` an interface, move implementation to source (Kittywhiskers Van Gogh)
d56879f refactor: restrict access to CoinJoin wallet managers (Kittywhiskers Van Gogh)
cd77127 refactor: separate `MisbehavingError` and `MessageProcessingResult` (Kittywhiskers Van Gogh)
9d06491 refactor: allow `MessageProcessingResult` to submit DSQ messages (Kittywhiskers Van Gogh)
cebe18b refactor: remove `ENABLE_WALLET` from `dsnotificationinterface.cpp` (Kittywhiskers Van Gogh)
2606d8c refactor: obscure scheduled CoinJoin tasks by moving into context (Kittywhiskers Van Gogh)
e786b4c refactor: move CDSTXManager out of CJContext (Kittywhiskers Van Gogh)
Pull request description:
## Additional Information
* Depends on #6828
* Depends on #6839
* As part of efforts in reducing `ENABLE_WALLET` proliferation in non-wallet code, this pull request isolates wallet-specific logic by abstracting implementation details of CoinJoin wallet managers in a manner similar to `PeerManager` ([source](https://github.com/dashpay/dash/blob/cae0bff3ee3d19628b255f36d17f5f62770cc3c2/src/net_processing.h#L55)).
* Additionally, as it is now conditionally initialized (as opposed to current `develop` behavior of unconditional initialization and bailout), we get to reduce the footprint of `CActiveMasternodeManager`, which is part of a larger initiative to isolate masternode-mode logic.
* `MisbehavingError` and `MessageProcessingResult` were extracted to `msg_processing.h` as support for relaying DSQ messages requires including `coinjoin/coinjoin.h` which creates a circular dependency issue if left as-is in `protocol.h` (as it is in `develop`), see below.
```
A new circular dependency in the form of "chainparams -> protocol -> coinjoin/coinjoin -> chainparams" appears to have been introduced.
```
Moving the constructor definitions to a source file would not have resolved this as circular dependencies treat the source file and header as one unit.
## How Has This Been Tested?
A full CoinJoin session run on 6a20464

## Breaking Changes
None expected.
## Checklist
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have added or updated relevant unit/integration/functional/e2e tests
- [x] I have made corresponding changes to the documentation **(note: N/A)**
- [x] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_
ACKs for top commit:
PastaPastaPasta:
utACK 6a20464
UdjinM6:
light ACK 6a20464
Tree-SHA512: a713876f03df60933a80e569f0c1153f054daa0d15e1e833c542ccd408f5b391a23a5e857bfda4a99f3e24e544aecbda7e76abae962598e835cebb558c227528CDSTXManager to NodeContext, abstract wallet-only CoinJoin managers behind interface, s/CJContext/CJWalletManager/g
File tree
39 files changed
+571
-438
lines changed- src
- coinjoin
- evo
- governance
- llmq
- masternode
- node
- rpc
- test
- util
- wallet/test
- test/lint
39 files changed
+571
-438
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
183 | 182 | | |
184 | 183 | | |
185 | 184 | | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
| 295 | + | |
295 | 296 | | |
296 | 297 | | |
297 | 298 | | |
| |||
486 | 487 | | |
487 | 488 | | |
488 | 489 | | |
489 | | - | |
490 | 490 | | |
| 491 | + | |
491 | 492 | | |
492 | 493 | | |
493 | 494 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| |||
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
42 | | - | |
| 41 | + | |
43 | 42 | | |
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
47 | 46 | | |
48 | | - | |
49 | | - | |
50 | 47 | | |
51 | 48 | | |
52 | 49 | | |
| |||
138 | 135 | | |
139 | 136 | | |
140 | 137 | | |
141 | | - | |
| 138 | + | |
142 | 139 | | |
143 | 140 | | |
144 | 141 | | |
145 | 142 | | |
146 | 143 | | |
147 | | - | |
148 | 144 | | |
149 | 145 | | |
150 | 146 | | |
| |||
169 | 165 | | |
170 | 166 | | |
171 | 167 | | |
172 | | - | |
173 | | - | |
| 168 | + | |
174 | 169 | | |
175 | 170 | | |
176 | 171 | | |
177 | 172 | | |
178 | 173 | | |
179 | 174 | | |
180 | | - | |
181 | | - | |
| 175 | + | |
182 | 176 | | |
183 | 177 | | |
184 | 178 | | |
185 | 179 | | |
186 | | - | |
187 | 180 | | |
188 | 181 | | |
189 | 182 | | |
| |||
386 | 379 | | |
387 | 380 | | |
388 | 381 | | |
389 | | - | |
390 | | - | |
391 | 382 | | |
392 | 383 | | |
393 | 384 | | |
| |||
423 | 414 | | |
424 | 415 | | |
425 | 416 | | |
426 | | - | |
427 | 417 | | |
428 | 418 | | |
429 | 419 | | |
| |||
441 | 431 | | |
442 | 432 | | |
443 | 433 | | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | 434 | | |
450 | 435 | | |
451 | 436 | | |
| |||
498 | 483 | | |
499 | 484 | | |
500 | 485 | | |
501 | | - | |
502 | | - | |
503 | 486 | | |
504 | 487 | | |
505 | 488 | | |
| |||
552 | 535 | | |
553 | 536 | | |
554 | 537 | | |
555 | | - | |
556 | 538 | | |
557 | 539 | | |
558 | 540 | | |
| |||
682 | 664 | | |
683 | 665 | | |
684 | 666 | | |
685 | | - | |
686 | | - | |
687 | 667 | | |
688 | 668 | | |
689 | 669 | | |
| |||
699 | 679 | | |
700 | 680 | | |
701 | 681 | | |
702 | | - | |
703 | 682 | | |
704 | 683 | | |
705 | 684 | | |
| |||
791 | 770 | | |
792 | 771 | | |
793 | 772 | | |
794 | | - | |
795 | 773 | | |
796 | 774 | | |
797 | 775 | | |
| |||
972 | 950 | | |
973 | 951 | | |
974 | 952 | | |
975 | | - | |
976 | 953 | | |
977 | 954 | | |
978 | 955 | | |
| |||
1001 | 978 | | |
1002 | 979 | | |
1003 | 980 | | |
1004 | | - | |
| 981 | + | |
1005 | 982 | | |
1006 | 983 | | |
1007 | 984 | | |
| |||
1840 | 1817 | | |
1841 | 1818 | | |
1842 | 1819 | | |
1843 | | - | |
1844 | | - | |
1845 | 1820 | | |
1846 | 1821 | | |
1847 | 1822 | | |
| |||
1850 | 1825 | | |
1851 | 1826 | | |
1852 | 1827 | | |
1853 | | - | |
1854 | 1828 | | |
1855 | 1829 | | |
1856 | 1830 | | |
| |||
1904 | 1878 | | |
1905 | 1879 | | |
1906 | 1880 | | |
1907 | | - | |
| 1881 | + | |
1908 | 1882 | | |
1909 | 1883 | | |
1910 | 1884 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | | - | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
| 87 | + | |
89 | 88 | | |
90 | 89 | | |
91 | 90 | | |
| |||
128 | 127 | | |
129 | 128 | | |
130 | 129 | | |
131 | | - | |
132 | | - | |
133 | 130 | | |
134 | 131 | | |
135 | 132 | | |
| |||
145 | 142 | | |
146 | 143 | | |
147 | 144 | | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | 145 | | |
152 | 146 | | |
153 | 147 | | |
| |||
202 | 196 | | |
203 | 197 | | |
204 | 198 | | |
205 | | - | |
| 199 | + | |
206 | 200 | | |
207 | 201 | | |
208 | 202 | | |
| |||
239 | 233 | | |
240 | 234 | | |
241 | 235 | | |
242 | | - | |
243 | 236 | | |
244 | 237 | | |
245 | 238 | | |
246 | | - | |
247 | | - | |
| 239 | + | |
248 | 240 | | |
249 | 241 | | |
250 | 242 | | |
251 | | - | |
252 | | - | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
253 | 246 | | |
254 | | - | |
255 | | - | |
| 247 | + | |
| 248 | + | |
256 | 249 | | |
257 | 250 | | |
258 | 251 | | |
| |||
269 | 262 | | |
270 | 263 | | |
271 | 264 | | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | 265 | | |
276 | 266 | | |
277 | 267 | | |
| |||
304 | 294 | | |
305 | 295 | | |
306 | 296 | | |
307 | | - | |
| 297 | + | |
308 | 298 | | |
309 | 299 | | |
310 | 300 | | |
311 | 301 | | |
312 | 302 | | |
313 | | - | |
314 | | - | |
| 303 | + | |
315 | 304 | | |
316 | 305 | | |
317 | 306 | | |
| |||
This file was deleted.
This file was deleted.
0 commit comments