Skip to content

Commit fa6af31

Browse files
author
MarcoFalke
committed
test: Document why syncwithvalidationinterfacequeue is needed in tests
1 parent fa135a1 commit fa6af31

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

test/functional/wallet_importmulti.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def run_test(self):
6464
self.nodes[0].generate(1)
6565
self.nodes[1].generate(1)
6666
timestamp = self.nodes[1].getblock(self.nodes[1].getbestblockhash())['mediantime']
67-
self.nodes[1].syncwithvalidationinterfacequeue()
67+
self.nodes[1].syncwithvalidationinterfacequeue() # Sync the timestamp to the wallet, so that importmulti works
6868

6969
node0_address1 = self.nodes[0].getaddressinfo(self.nodes[0].getnewaddress())
7070

test/functional/wallet_resendwallettransactions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ def run_test(self):
4949
block.solve()
5050
node.submitblock(ToHex(block))
5151

52+
# Set correct m_best_block_time, which is used in ResendWalletTransactions
5253
node.syncwithvalidationinterfacequeue()
5354
now = int(time.time())
5455

0 commit comments

Comments
 (0)