Merge #20179: test: Fix intermittent issue in wallet_import_rescan
faab86f6c8367178a068b298eda4ae3986ac2147 test: Fix intermittent issue in wallet_send (MarcoFalke)
faca3734c00ffaf2be7bd555fbfa2887ba28c811 test: Fix intermittent issue in wallet_import_rescan (MarcoFalke)
Pull request description:
Fixes the issue
```
node2 2020-10-16T14:26:28.699593Z (mocktime: 2020-10-16T16:26:46Z) [msghand] Timeout downloading block 1131f0318b913e078402524f1e63e53d52171844dd8246a03b970e540cb56924 from peer=0, disconnecting
ACKs for top commit:
fjahr:
utACK faab86f6c8367178a068b298eda4ae3986ac2147
Tree-SHA512: 739e8ad488c50e6beae676fb6cb021033cca6192da4acb4512c182bd8843f2f42a4a07474118285cb1d91798904433e4abb09476cc9ce115aae87ce64db69eaf
This commit is contained in:
commit
d9d9a29352
@ -182,6 +182,7 @@ class ImportRescanTest(BitcoinTestFramework):
|
||||
self.nodes[0].generate(1) # Generate one block for each send
|
||||
variant.confirmation_height = self.nodes[0].getblockcount()
|
||||
variant.timestamp = self.nodes[0].getblockheader(self.nodes[0].getbestblockhash())["time"]
|
||||
self.sync_all() # Conclude sync before calling setmocktime to avoid timeouts
|
||||
|
||||
# Generate a block further in the future (past the rescan window).
|
||||
assert_equal(self.nodes[0].getrawmempool(), [])
|
||||
|
||||
@ -316,6 +316,7 @@ class WalletSendTest(BitcoinTestFramework):
|
||||
res = self.nodes[0].sendrawtransaction(hex)
|
||||
self.nodes[0].generate(1)
|
||||
assert_equal(self.nodes[0].gettransaction(txid)["confirmations"], 1)
|
||||
self.sync_all()
|
||||
|
||||
self.log.info("Lock unspents...")
|
||||
utxo1 = w0.listunspent()[0]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user