test: Add missing syncwithvalidationinterfacequeue to wallet_import_rescan
This commit is contained in:
parent
56376f3365
commit
fa465e4da4
1 changed files with 4 additions and 2 deletions
|
@ -166,11 +166,12 @@ class ImportRescanTest(BitcoinTestFramework):
|
||||||
timestamp = self.nodes[0].getblockheader(self.nodes[0].getbestblockhash())["time"]
|
timestamp = self.nodes[0].getblockheader(self.nodes[0].getbestblockhash())["time"]
|
||||||
set_node_times(self.nodes, timestamp + TIMESTAMP_WINDOW + 1)
|
set_node_times(self.nodes, timestamp + TIMESTAMP_WINDOW + 1)
|
||||||
self.nodes[0].generate(1)
|
self.nodes[0].generate(1)
|
||||||
self.sync_blocks()
|
self.sync_all()
|
||||||
|
|
||||||
# For each variation of wallet key import, invoke the import RPC and
|
# For each variation of wallet key import, invoke the import RPC and
|
||||||
# check the results from getbalance and listtransactions.
|
# check the results from getbalance and listtransactions.
|
||||||
for variant in IMPORT_VARIANTS:
|
for variant in IMPORT_VARIANTS:
|
||||||
|
self.log.info('Run import for variant {}'.format(variant))
|
||||||
variant.expect_disabled = variant.rescan == Rescan.yes and variant.prune and variant.call == Call.single
|
variant.expect_disabled = variant.rescan == Rescan.yes and variant.prune and variant.call == Call.single
|
||||||
expect_rescan = variant.rescan == Rescan.yes and not variant.expect_disabled
|
expect_rescan = variant.rescan == Rescan.yes and not variant.expect_disabled
|
||||||
variant.node = self.nodes[2 + IMPORT_NODES.index(ImportNode(variant.prune, expect_rescan))]
|
variant.node = self.nodes[2 + IMPORT_NODES.index(ImportNode(variant.prune, expect_rescan))]
|
||||||
|
@ -192,10 +193,11 @@ class ImportRescanTest(BitcoinTestFramework):
|
||||||
# Generate a block containing the new transactions.
|
# Generate a block containing the new transactions.
|
||||||
self.nodes[0].generate(1)
|
self.nodes[0].generate(1)
|
||||||
assert_equal(self.nodes[0].getrawmempool(), [])
|
assert_equal(self.nodes[0].getrawmempool(), [])
|
||||||
self.sync_blocks()
|
self.sync_all()
|
||||||
|
|
||||||
# Check the latest results from getbalance and listtransactions.
|
# Check the latest results from getbalance and listtransactions.
|
||||||
for variant in IMPORT_VARIANTS:
|
for variant in IMPORT_VARIANTS:
|
||||||
|
self.log.info('Run check for variant {}'.format(variant))
|
||||||
if not variant.expect_disabled:
|
if not variant.expect_disabled:
|
||||||
variant.expected_balance += variant.sent_amount
|
variant.expected_balance += variant.sent_amount
|
||||||
variant.expected_txs += 1
|
variant.expected_txs += 1
|
||||||
|
|
Loading…
Reference in a new issue