mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
Merge 2737197ff3 into merged_master (Bitcoin PR #18213)
This commit is contained in:
commit
e747991568
1 changed files with 5 additions and 0 deletions
|
|
@ -150,6 +150,11 @@ class TestP2PConn(P2PInterface):
|
|||
super().__init__()
|
||||
self.getdataset = set()
|
||||
|
||||
# Avoid sending out msg_getdata in the mininode thread as a reply to invs.
|
||||
# They are not needed and would only lead to races because we send msg_getdata out in the test thread
|
||||
def on_inv(self, message):
|
||||
pass
|
||||
|
||||
def on_getdata(self, message):
|
||||
for inv in message.inv:
|
||||
self.getdataset.add(inv.hash)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue