Skip to content

Commit caceff5

Browse files
author
MarcoFalke
committed
Merge #15866: test: Add missing syncwithvalidationinterfacequeue to wallet_import_rescan
fa465e4 test: Add missing syncwithvalidationinterfacequeue to wallet_import_rescan (MarcoFalke) Pull request description: Fixes #15865 ACKs for commit fa465e: promag: utACK fa465e4. Tree-SHA512: efc1d82b92aefb1f0e6c54ed0a2d69c547cd9dee7ff8d57a665022fefce01bcf726d394f0665abe4fbd3451abf3cb08eed6ff45def831857f917a988e13a1055
2 parents 08bd21a + fa465e4 commit caceff5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/functional/wallet_import_rescan.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,12 @@ def run_test(self):
166166
timestamp = self.nodes[0].getblockheader(self.nodes[0].getbestblockhash())["time"]
167167
set_node_times(self.nodes, timestamp + TIMESTAMP_WINDOW + 1)
168168
self.nodes[0].generate(1)
169-
self.sync_blocks()
169+
self.sync_all()
170170

171171
# For each variation of wallet key import, invoke the import RPC and
172172
# check the results from getbalance and listtransactions.
173173
for variant in IMPORT_VARIANTS:
174+
self.log.info('Run import for variant {}'.format(variant))
174175
variant.expect_disabled = variant.rescan == Rescan.yes and variant.prune and variant.call == Call.single
175176
expect_rescan = variant.rescan == Rescan.yes and not variant.expect_disabled
176177
variant.node = self.nodes[2 + IMPORT_NODES.index(ImportNode(variant.prune, expect_rescan))]
@@ -192,10 +193,11 @@ def run_test(self):
192193
# Generate a block containing the new transactions.
193194
self.nodes[0].generate(1)
194195
assert_equal(self.nodes[0].getrawmempool(), [])
195-
self.sync_blocks()
196+
self.sync_all()
196197

197198
# Check the latest results from getbalance and listtransactions.
198199
for variant in IMPORT_VARIANTS:
200+
self.log.info('Run check for variant {}'.format(variant))
199201
if not variant.expect_disabled:
200202
variant.expected_balance += variant.sent_amount
201203
variant.expected_txs += 1

0 commit comments

Comments
 (0)