[test] P2P connection behavior should meet expectations
- P2PTxInvStore should supplement `on_inv` behavior of parent, not overwrite.
This commit is contained in:
1 parent
bd093ca15d
commit
00d44a534b
1 file changed
+2
@@ -652,6 +652,8 @@ class P2PTxInvStore(P2PInterface):
|
||||
# save txid
|
||||
self.tx_invs_received[i.hash] += 1
|
||||
|
||||
super().on_inv(message)
|
||||
|
||||
def get_invs(self):
|
||||
with mininode_lock:
|
||||
return list(self.tx_invs_received.keys())
|
||||
|
||||
Reference in new issue
Block a user