aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmiti Uttarwar <amiti@uttarwar.org>2020-04-28 10:18:36 -0700
committerAmiti Uttarwar <amiti@uttarwar.org>2020-05-25 11:27:06 -0700
commit00d44a534b4e5ae249b8011360c6b0f7dc731581 (patch)
treefcfd948ae58fe486a4a37e5f223d2e1af3029bb2
parentbd093ca15de762fdaf0937a0877d17b0c2bce16e (diff)
[test] P2P connection behavior should meet expectations
- P2PTxInvStore should supplement `on_inv` behavior of parent, not overwrite.
-rwxr-xr-xtest/functional/test_framework/mininode.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/test_framework/mininode.py b/test/functional/test_framework/mininode.py
index 95a63717d6..83149ead54 100755
--- a/test/functional/test_framework/mininode.py
+++ b/test/functional/test_framework/mininode.py
@@ -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())