diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-09-06 14:01:52 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-10-08 14:23:51 +0200 |
commit | fa6af312277bb1b7e57d9b764d411c5b0873829f (patch) | |
tree | 31f3c9b8e4c0fe58e2c25196ef3a9a1a68f37fc0 /test/functional | |
parent | fa135a13b8ddaa117bd090ec43a3eab3a95755c1 (diff) | |
download | bitcoin-fa6af312277bb1b7e57d9b764d411c5b0873829f.tar.xz |
test: Document why syncwithvalidationinterfacequeue is needed in tests
Diffstat (limited to 'test/functional')
-rwxr-xr-x | test/functional/wallet_importmulti.py | 2 | ||||
-rwxr-xr-x | test/functional/wallet_resendwallettransactions.py | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/wallet_importmulti.py b/test/functional/wallet_importmulti.py index f7fdd6e908..30206349ae 100755 --- a/test/functional/wallet_importmulti.py +++ b/test/functional/wallet_importmulti.py @@ -64,7 +64,7 @@ class ImportMultiTest(BitcoinTestFramework): self.nodes[0].generate(1) self.nodes[1].generate(1) timestamp = self.nodes[1].getblock(self.nodes[1].getbestblockhash())['mediantime'] - self.nodes[1].syncwithvalidationinterfacequeue() + self.nodes[1].syncwithvalidationinterfacequeue() # Sync the timestamp to the wallet, so that importmulti works node0_address1 = self.nodes[0].getaddressinfo(self.nodes[0].getnewaddress()) diff --git a/test/functional/wallet_resendwallettransactions.py b/test/functional/wallet_resendwallettransactions.py index 1dcb12de08..3bfbcacd17 100755 --- a/test/functional/wallet_resendwallettransactions.py +++ b/test/functional/wallet_resendwallettransactions.py @@ -49,6 +49,7 @@ class ResendWalletTransactionsTest(BitcoinTestFramework): block.solve() node.submitblock(ToHex(block)) + # Set correct m_best_block_time, which is used in ResendWalletTransactions node.syncwithvalidationinterfacequeue() now = int(time.time()) |