mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
e4a54af6b8test: add wallet_transactiontime_rescan.py --descriptors to test_runner.py (Sebastian Falbesoner)b60e02e993test: fix test wallet_transactiontime_rescan.py for descriptor wallets (Sebastian Falbesoner)a905ed1a61test: refactor: use `set_node_times` helper in wallet_transactiontime_rescan.py (Sebastian Falbesoner) Pull request description: The functional test wallet_transactiontime_rescan.py currently fails on master branch, if descriptor wallets are used (argument `--descriptors`). This is due to the fact that in this case, the test framework maps the importaddress RPC calls to the importdescriptors RPC (rescan=False -> timestamp='now'), which always rescans blocks of the past 2 hours, based on the current MTP timestamp. In order to avoid importing the last address (wo3), we generate 10 more blocks with advanced time, to ensure that the balance after importing is zero:681b25e3cd/test/functional/wallet_transactiontime_rescan.py (L125-L134)Calling this test with descriptor wallets is also added to test runner. Fixes #23562. ACKs for top commit: Sjors: tACKe4a54afbrunoerg: tACKe4a54af6b8Tree-SHA512: 9fd8e298d48dd7947b1218d61a1a66c1241b3dbb14451b0ec7cd30caa74ee540e7ee5a7bd10d421b9e3b6e549fa5c3e85bd02496436128b433b328118642f600
31 KiB
Executable File
31 KiB
Executable File