diff --git a/server/protocol.py b/server/protocol.py index 0ea78f6..5f5ae54 100644 --- a/server/protocol.py +++ b/server/protocol.py @@ -331,8 +331,8 @@ class ElectrumX(JSONRPC): @classmethod def watched_address_count(cls): - sessions = self.SESSION_MGR.sessions - return sum(len(session.hash168s) for session in session + sessions = cls.SESSION_MGR.sessions + return sum(len(session.hash168s) for session in sessions if isinstance(session, cls)) @classmethod