Don't send notifications to LocalRPC sessions

Fixes #320
This commit is contained in:
Neil Booth 2017-11-28 18:51:49 +09:00
parent cb33dd115f
commit ddf65fa9c2

View File

@ -286,6 +286,8 @@ class Controller(ServerBase):
# Height notifications are synchronous. Those sessions with
# touched addresses are scheduled for asynchronous completion
for session in self.sessions:
if isinstance(session, LocalRPC):
continue
session_touched = session.notify(height, touched)
if session_touched is not None:
self.ensure_future(session.notify_async(session_touched))