mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-20 10:38:42 +01:00
qa: Fix race condition in sendheaders.py
This commit is contained in:
parent
c96b2e4f09
commit
6d51eaefe9
@ -72,12 +72,14 @@ class ReplaceByFeeTest(BitcoinTestFramework):
|
|||||||
["-mempoolreplacement=0"]]
|
["-mempoolreplacement=0"]]
|
||||||
|
|
||||||
def run_test(self):
|
def run_test(self):
|
||||||
# Leave IBD and ensure nodes are synced
|
# Leave IBD
|
||||||
self.nodes[0].generate(1)
|
self.nodes[0].generate(1)
|
||||||
self.sync_all()
|
|
||||||
|
|
||||||
make_utxo(self.nodes[0], 1*COIN)
|
make_utxo(self.nodes[0], 1*COIN)
|
||||||
|
|
||||||
|
# Ensure nodes are synced
|
||||||
|
self.sync_all()
|
||||||
|
|
||||||
self.log.info("Running test simple doublespend...")
|
self.log.info("Running test simple doublespend...")
|
||||||
self.test_simple_doublespend()
|
self.test_simple_doublespend()
|
||||||
|
|
||||||
|
@ -225,6 +225,10 @@ class SendHeadersTest(BitcoinTestFramework):
|
|||||||
inv_node.wait_for_verack()
|
inv_node.wait_for_verack()
|
||||||
test_node.wait_for_verack()
|
test_node.wait_for_verack()
|
||||||
|
|
||||||
|
# Ensure verack's have been processed by our peer
|
||||||
|
inv_node.sync_with_ping()
|
||||||
|
test_node.sync_with_ping()
|
||||||
|
|
||||||
tip = int(self.nodes[0].getbestblockhash(), 16)
|
tip = int(self.nodes[0].getbestblockhash(), 16)
|
||||||
|
|
||||||
# PART 1
|
# PART 1
|
||||||
|
Loading…
Reference in New Issue
Block a user