timport version module - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit eb96d422f7f7c7df40bb3a028b573263a1680e9a DIR parent d78537c8c4973d1589347b0573be177b8dbeb5a3 HTML Author: ThomasV <thomasv@electrum.org> Date: Sat, 9 Feb 2019 12:15:46 +0100 import version module Diffstat: M electrum/interface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/electrum/interface.py b/electrum/interface.py t@@ -39,7 +39,7 @@ from .util import PrintError, ignore_exceptions, log_exceptions, bfh, SilentTask from . import util from . import x509 from . import pem -from .version import ELECTRUM_VERSION, PROTOCOL_VERSION +from . import version from . import blockchain from .blockchain import Blockchain from . import constants t@@ -372,7 +372,7 @@ class Interface(PrintError): self.session = session # type: NotificationSession self.session.default_timeout = self.network.get_network_timeout_seconds(NetworkTimeout.Generic) try: - ver = await session.send_request('server.version', [ELECTRUM_VERSION, PROTOCOL_VERSION]) + ver = await session.send_request('server.version', [version.ELECTRUM_VERSION, version.PROTOCOL_VERSION]) except aiorpcx.jsonrpc.RPCError as e: raise GracefulDisconnect(e) # probably 'unsupported protocol version' if exit_early: