mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-20 02:25:40 +01:00
[test] P2P connection behavior should meet expectations
- P2PTxInvStore should supplement `on_inv` behavior of parent, not overwrite.
This commit is contained in:
parent
bd093ca15d
commit
00d44a534b
@ -652,6 +652,8 @@ class P2PTxInvStore(P2PInterface):
|
|||||||
# save txid
|
# save txid
|
||||||
self.tx_invs_received[i.hash] += 1
|
self.tx_invs_received[i.hash] += 1
|
||||||
|
|
||||||
|
super().on_inv(message)
|
||||||
|
|
||||||
def get_invs(self):
|
def get_invs(self):
|
||||||
with mininode_lock:
|
with mininode_lock:
|
||||||
return list(self.tx_invs_received.keys())
|
return list(self.tx_invs_received.keys())
|
||||||
|
Loading…
Reference in New Issue
Block a user