Commit f16025f
committed
Merge #6094: feat: support descriptor wallets for RPC governance votemany, votealias
c72ec70 feat: implement governance RPCs votealias and votemany for descriptor wallets (Konstantin Akimov)
4908329 refactor: new method to generate a signing message in CGovernanceVote (Konstantin Akimov)
Pull request description:
## Issue being fixed or feature implemented
RPCs `governance votemany` and `governance votealias` use forcely LegacyScriptPubKeyMan instead using CWallet's interface.
It causes a failures such as
```
test_framework.authproxy.JSONRPCException: This type of wallet does not support this command (-4)
```
See dashpay/dash-issues#59 to track progress
## What was done?
Use CWallet's interfaces instead LegacyScriptPubKeyMan
## How Has This Been Tested?
Functional tests `feature_governance.py` and `feature_governance_cl.py` to run by both ways - legacy and descriptor wallets.
Run unit and functional tests.
Extra test done locally:
```diff
--- a/test/functional/test_framework/test_framework.py
+++ b/test/functional/test_framework/test_framework.py
@@ -242,10 +242,10 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass):
if self.options.descriptors is None:
# Prefer BDB unless it isn't available
- if self.is_bdb_compiled():
- self.options.descriptors = False
- elif self.is_sqlite_compiled():
+ if self.is_sqlite_compiled():
self.options.descriptors = True
+ elif self.is_bdb_compiled():
+ self.options.descriptors = False
```
to flip flag descriptor wallets/legacy wallets for all functional tests.
## Breaking Changes
N/A
## 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
- [ ] I have made corresponding changes to the documentation
- [x] I have assigned this pull request to a milestone
ACKs for top commit:
UdjinM6:
utACK c72ec70
PastaPastaPasta:
utACK c72ec70
Tree-SHA512: 2c18f0d4acb1c4d57da81bf54f0d155682f558eeb7271df7e6fe75c126ef7f047562794a6730e3ca5351abc4e2daded06b874c2ab77f9c47b840c89d8a158c9fFile tree
4 files changed
+65
-65
lines changed- src
- governance
- rpc
- test/functional
4 files changed
+65
-65
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | 165 | | |
201 | 166 | | |
202 | 167 | | |
| |||
208 | 173 | | |
209 | 174 | | |
210 | 175 | | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
| 176 | + | |
217 | 177 | | |
218 | 178 | | |
219 | 179 | | |
| |||
275 | 235 | | |
276 | 236 | | |
277 | 237 | | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
278 | 246 | | |
279 | 247 | | |
280 | 248 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
407 | | - | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
408 | 438 | | |
409 | 439 | | |
410 | 440 | | |
| |||
425 | 455 | | |
426 | 456 | | |
427 | 457 | | |
428 | | - | |
| 458 | + | |
429 | 459 | | |
430 | | - | |
| 460 | + | |
431 | 461 | | |
432 | 462 | | |
433 | 463 | | |
| |||
441 | 471 | | |
442 | 472 | | |
443 | 473 | | |
444 | | - | |
| 474 | + | |
| 475 | + | |
445 | 476 | | |
446 | 477 | | |
447 | 478 | | |
| |||
471 | 502 | | |
472 | 503 | | |
473 | 504 | | |
474 | | - | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
475 | 513 | | |
476 | 514 | | |
477 | 515 | | |
| |||
510 | 548 | | |
511 | 549 | | |
512 | 550 | | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
518 | | - | |
| 551 | + | |
519 | 552 | | |
520 | 553 | | |
521 | 554 | | |
522 | | - | |
523 | | - | |
524 | | - | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
525 | 558 | | |
526 | 559 | | |
527 | 560 | | |
528 | | - | |
| 561 | + | |
529 | 562 | | |
530 | 563 | | |
531 | 564 | | |
| |||
575 | 608 | | |
576 | 609 | | |
577 | 610 | | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | 611 | | |
583 | | - | |
584 | | - | |
| 612 | + | |
| 613 | + | |
585 | 614 | | |
586 | 615 | | |
587 | 616 | | |
588 | | - | |
589 | | - | |
| 617 | + | |
| 618 | + | |
590 | 619 | | |
591 | | - | |
| 620 | + | |
592 | 621 | | |
593 | 622 | | |
594 | 623 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
| 291 | + | |
291 | 292 | | |
| 293 | + | |
292 | 294 | | |
293 | 295 | | |
294 | 296 | | |
| |||
0 commit comments