mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 09:21:39 +00:00
import version module
This commit is contained in:
parent
d78537c8c4
commit
eb96d422f7
1 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ from .util import PrintError, ignore_exceptions, log_exceptions, bfh, SilentTask
|
||||||
from . import util
|
from . import util
|
||||||
from . import x509
|
from . import x509
|
||||||
from . import pem
|
from . import pem
|
||||||
from .version import ELECTRUM_VERSION, PROTOCOL_VERSION
|
from . import version
|
||||||
from . import blockchain
|
from . import blockchain
|
||||||
from .blockchain import Blockchain
|
from .blockchain import Blockchain
|
||||||
from . import constants
|
from . import constants
|
||||||
|
@ -372,7 +372,7 @@ class Interface(PrintError):
|
||||||
self.session = session # type: NotificationSession
|
self.session = session # type: NotificationSession
|
||||||
self.session.default_timeout = self.network.get_network_timeout_seconds(NetworkTimeout.Generic)
|
self.session.default_timeout = self.network.get_network_timeout_seconds(NetworkTimeout.Generic)
|
||||||
try:
|
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:
|
except aiorpcx.jsonrpc.RPCError as e:
|
||||||
raise GracefulDisconnect(e) # probably 'unsupported protocol version'
|
raise GracefulDisconnect(e) # probably 'unsupported protocol version'
|
||||||
if exit_early:
|
if exit_early:
|
||||||
|
|
Loading…
Add table
Reference in a new issue