I went through all the tests and checked whether they passed with descriptor wallets. This partially informed some changes in #16528. Some tests needed changes to work with descriptor wallets. These were primarily due to import and watchonly behavior. There are some tests and test cases that only test legacy wallet behavior so those tests won’t be run with descriptor wallets.
This PR updates more tests to have to the --descriptors
switch in test_runner.py
. Additionally a mutually exclusive --legacy-wallet
option has been added to force legacy wallets. This does nothing currently but will be useful in the future when descriptor wallets are the default. For the tests that rely on legacy wallet behavior, this option is being set so that we don’t forget in the future. Those tests are feature_segwit.py
, wallet_watchonly.py
, wallet_implicitsegwit.py
, wallet_import_with_label.py
, and wallet_import_with_label.py
.
If you invert the --descriptors
/--legacy-wallet
default so that descriptor wallets are the default, all tests (besides the legacy wallet specific ones) will pass.