mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 10:43:19 -03: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
1 changed files with 2 additions and 0 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Reference in a new issue