test: always rescan after importing private keys in `init_wallet` helper

This fixes the functional test feature_rbf.py for descriptor wallets.
pull/826/head
Sebastian Falbesoner 3 years ago
parent 111c3e06b3
commit 166f8ec28e

@ -431,7 +431,7 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass):
n = self.nodes[node]
if wallet_name is not None:
n.createwallet(wallet_name=wallet_name, descriptors=self.options.descriptors, load_on_startup=True)
n.importprivkey(privkey=n.get_deterministic_priv_key().key, label='coinbase')
n.importprivkey(privkey=n.get_deterministic_priv_key().key, label='coinbase', rescan=True)
def run_test(self):
"""Tests must override this method to define test logic"""

Loading…
Cancel
Save