From f7d1bb3a8946c942cfe42bb374ebcc76fb685bb6 Mon Sep 17 00:00:00 2001 From: Stuckinaboot Date: Thu, 28 Feb 2019 18:12:33 -0500 Subject: [PATCH] Add notify function to network interface --- libp2p/network/network_interface.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libp2p/network/network_interface.py b/libp2p/network/network_interface.py index 1867efc..acd20b1 100644 --- a/libp2p/network/network_interface.py +++ b/libp2p/network/network_interface.py @@ -41,3 +41,9 @@ class INetwork(ABC): :param *args: one or many multiaddrs to start listening on :return: True if at least one success """ + + @abstractmethod + def notify(self, notifee): + """ + :param notifee: object implementing Notifee interface + """