aboutsummaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2017-02-07 17:40:28 -0500
committerCory Fields <cory-nospam-@coryfields.com>2017-02-13 18:56:03 -0500
commit8650bbb660eaf8c81d714f1518ecc8c35ae17463 (patch)
treec5b6a654665ccf928fe12400cea292dfd84e1bf4 /qa
parent5b5e4f8330634dc33446854677badc52aef43b82 (diff)
qa: Expose on-connection to mininode listeners
Diffstat (limited to 'qa')
-rwxr-xr-xqa/rpc-tests/test_framework/mininode.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/qa/rpc-tests/test_framework/mininode.py b/qa/rpc-tests/test_framework/mininode.py
index 696a065282..5b563c58ae 100755
--- a/qa/rpc-tests/test_framework/mininode.py
+++ b/qa/rpc-tests/test_framework/mininode.py
@@ -1540,6 +1540,7 @@ class NodeConnCB(object):
if conn.ver_send > BIP0031_VERSION:
conn.send_message(msg_pong(message.nonce))
def on_reject(self, conn, message): pass
+ def on_open(self, conn): pass
def on_close(self, conn): pass
def on_mempool(self, conn): pass
def on_pong(self, conn, message): pass
@@ -1657,6 +1658,7 @@ class NodeConn(asyncore.dispatcher):
if self.state != "connected":
self.show_debug_msg("MiniNode: Connected & Listening: \n")
self.state = "connected"
+ self.cb.on_open(self)
def handle_close(self):
self.show_debug_msg("MiniNode: Closing Connection to %s:%d... "