Skip to content

Commit 2737197

Browse files
author
MarcoFalke
committed
Merge #18213: test: Fix race in p2p_segwit
fa2cf85 test: Fix race in p2p_segwit (MarcoFalke) Pull request description: Fixes #11696 Top commit has no ACKs. Tree-SHA512: 09de07ea26236547586f5c373a0df2b68d84af5cfa8f40bd2ca9f951fc083c5f4b8a472a60668d99118bbd9f3942ec3d6a34f05944d47345acca41c95475bb27
2 parents 4c42a13 + fa2cf85 commit 2737197

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/functional/p2p_segwit.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,11 @@ def __init__(self):
147147
super().__init__()
148148
self.getdataset = set()
149149

150+
# Avoid sending out msg_getdata in the mininode thread as a reply to invs.
151+
# They are not needed and would only lead to races because we send msg_getdata out in the test thread
152+
def on_inv(self, message):
153+
pass
154+
150155
def on_getdata(self, message):
151156
for inv in message.inv:
152157
self.getdataset.add(inv.hash)

0 commit comments

Comments
 (0)