Browse Source

Fix getting the number of watched addresses

Resolves #13
master
Johann Bauer 8 years ago
committed by GitHub
parent
commit
1405057096
  1. 4
      server/protocol.py

4
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

Loading…
Cancel
Save