Skip to content

Commit 166f8ec

Browse files
committed
test: always rescan after importing private keys in init_wallet helper
This fixes the functional test feature_rbf.py for descriptor wallets.
1 parent 111c3e0 commit 166f8ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/functional/test_framework/test_framework.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ def init_wallet(self, *, node):
431431
n = self.nodes[node]
432432
if wallet_name is not None:
433433
n.createwallet(wallet_name=wallet_name, descriptors=self.options.descriptors, load_on_startup=True)
434-
n.importprivkey(privkey=n.get_deterministic_priv_key().key, label='coinbase')
434+
n.importprivkey(privkey=n.get_deterministic_priv_key().key, label='coinbase', rescan=True)
435435

436436
def run_test(self):
437437
"""Tests must override this method to define test logic"""

0 commit comments

Comments
 (0)