Browse Source

Force JSONRPCv2

Temporary backwards compat hack for old Coinomi wallets
master
Neil Booth 8 years ago
parent
commit
eff5d3d7e4
  1. 6
      server/session.py

6
server/session.py

@ -10,7 +10,7 @@
import time import time
from functools import partial from functools import partial
from lib.jsonrpc import JSONSession, RPCError from lib.jsonrpc import JSONSession, RPCError, JSONRPCv2
from server.daemon import DaemonError from server.daemon import DaemonError
from server.version import VERSION from server.version import VERSION
@ -23,7 +23,9 @@ class SessionBase(JSONSession):
''' '''
def __init__(self, controller, kind): 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.kind = kind # 'RPC', 'TCP' etc.
self.controller = controller self.controller = controller
self.bp = controller.bp self.bp = controller.bp

Loading…
Cancel
Save