[test] P2P connection behavior should meet expectations

- P2PTxInvStore should supplement `on_inv` behavior of parent, not overwrite.
This commit is contained in:
Amiti Uttarwar 2020-04-28 10:18:36 -07:00
parent bd093ca15d
commit 00d44a534b

View File

@ -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())