Skip to content

Commit 6d51eae

Browse files
committed
qa: Fix race condition in sendheaders.py
1 parent c96b2e4 commit 6d51eae

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

test/functional/replace-by-fee.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,14 @@ def set_test_params(self):
7272
["-mempoolreplacement=0"]]
7373

7474
def run_test(self):
75-
# Leave IBD and ensure nodes are synced
75+
# Leave IBD
7676
self.nodes[0].generate(1)
77-
self.sync_all()
7877

7978
make_utxo(self.nodes[0], 1*COIN)
8079

80+
# Ensure nodes are synced
81+
self.sync_all()
82+
8183
self.log.info("Running test simple doublespend...")
8284
self.test_simple_doublespend()
8385

test/functional/sendheaders.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,10 @@ def run_test(self):
225225
inv_node.wait_for_verack()
226226
test_node.wait_for_verack()
227227

228+
# Ensure verack's have been processed by our peer
229+
inv_node.sync_with_ping()
230+
test_node.sync_with_ping()
231+
228232
tip = int(self.nodes[0].getbestblockhash(), 16)
229233

230234
# PART 1

0 commit comments

Comments
 (0)