From ddf65fa9c268fbe85b26a6b80e4d0b7ffcd7353b Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Tue, 28 Nov 2017 18:51:49 +0900 Subject: [PATCH] Don't send notifications to LocalRPC sessions Fixes #320 --- server/controller.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/controller.py b/server/controller.py index d77b35d..e0c3428 100644 --- a/server/controller.py +++ b/server/controller.py @@ -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))