From eff5d3d7e41ba101372dd48a5f5c5aa67be5bb4c Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Tue, 31 Jan 2017 07:48:18 +0900 Subject: [PATCH] Force JSONRPCv2 Temporary backwards compat hack for old Coinomi wallets --- server/session.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/session.py b/server/session.py index 47f5f66..01ea8e9 100644 --- a/server/session.py +++ b/server/session.py @@ -10,7 +10,7 @@ import time from functools import partial -from lib.jsonrpc import JSONSession, RPCError +from lib.jsonrpc import JSONSession, RPCError, JSONRPCv2 from server.daemon import DaemonError from server.version import VERSION @@ -23,7 +23,9 @@ class SessionBase(JSONSession): ''' def __init__(self, controller, kind): - super().__init__() + # Force v2 as a temporary hack for old Coinomi wallets + # Remove in April 2017 + super().__init__(version=JSONRPCv2) self.kind = kind # 'RPC', 'TCP' etc. self.controller = controller self.bp = controller.bp