forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge bitcoin#18788: tests: Update more tests to work with descriptor…
… wallets c7b7e0a tests: Make only desc wallets for wallet_multwallet.py --descriptors (Andrew Chow) d4b67ad Avoid creating legacy wallets in wallet_importdescriptors.py (Andrew Chow) 6c9c12b Update feature_backwards_compatibility for descriptor wallets (Andrew Chow) 9a4c631 Update wallet_labels.py to not require descriptors=False (Andrew Chow) 242aed7 tests: Add a --legacy-wallet that is mutually exclusive with --descriptors (Andrew Chow) 388053e Disable some tests for tool_wallet when descriptors (Andrew Chow) 47d3243 Make raw multisig tests legacy wallet only in rpc_rawtransaction.py (Andrew Chow) 59d3da5 Do addmultisigaddress tests in legacy wallet mode in wallet_address_types.py (Andrew Chow) 25bc5dc Use importdescriptors when in descriptor wallet mode in wallet_createwallet.py (Andrew Chow) 0bd1860 Avoid dumpprivkey and watchonly behavior in rpc_signrawtransaction.py (Andrew Chow) 08067ae Add script equivalent of functions in address.py (Andrew Chow) 8696888 Add descriptor wallet output to tool_wallet.py (Andrew Chow) 3457679 Use separate watchonly wallet for multisig in feature_nulldummy.py (Andrew Chow) a42652e Move import and watchonly tests to be legacy wallet only in wallet_balance.py (Andrew Chow) 4b87190 Use importdescriptors for descriptor wallets in wallet_bumpfee.py (Andrew Chow) c2711e4 Avoid dumpprivkey in wallet_listsinceblock.py (Andrew Chow) 553dbf9 Make import tests in wallet_listtransactions.py legacy wallet only (Andrew Chow) dc81418 Use a separate watchonly wallet in rpc_fundrawtransaction.py (Andrew Chow) a357111 Update wallet_importprunedfunds to avoid dumpprivkey (Andrew Chow) Pull request description: I went through all the tests and checked whether they passed with descriptor wallets. This partially informed some changes in bitcoin#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. ACKs for top commit: MarcoFalke: review ACK c7b7e0a 🎿 laanwj: ACK c7b7e0a Tree-SHA512: 2f4e87815005d1d0a2543ea7947f7cd7593d8cf5312228ef85f8e096f19739b225769961943049cb44f6f07a35b8de988e2246ab9aca5bb5a0b2e62694d5637d
- Loading branch information
Showing
20 changed files
with
721 additions
and
392 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.