Browse Source

ElectrumX: recalc concurrency on connect

Require aiorpcX 0.13.5
patch-2
Neil Booth 6 years ago
parent
commit
7ea05184dc
  1. 4
      electrumx/server/controller.py
  2. 1
      electrumx/server/session.py
  3. 2
      setup.py

4
electrumx/server/controller.py

@ -82,8 +82,8 @@ class Controller(ServerBase):
'''Start the RPC server and wait for the mempool to synchronize. Then
start serving external clients.
'''
if not (0, 13, 2) <= aiorpcx_version < (0, 14):
raise RuntimeError('aiorpcX version 0.13.x, x>=2, is required')
if not (0, 13, 5) <= aiorpcx_version < (0, 14):
raise RuntimeError('aiorpcX version 0.13.0, x>=5, is required')
env = self.env
min_str, max_str = env.coin.SESSIONCLS.protocol_min_max_strings()

1
electrumx/server/session.py

@ -735,6 +735,7 @@ class ElectrumX(SessionBase):
self.mempool_statuses = {}
self.set_request_handlers(self.PROTOCOL_MIN)
self.is_peer = False
self.recalc_concurrency()
@classmethod
def protocol_min_max_strings(cls):

2
setup.py

@ -14,7 +14,7 @@ setuptools.setup(
# "xevan_hash" package is required to sync Xuez network.
# "groestlcoin_hash" package is required to sync Groestlcoin network.
# "pycryptodomex" package is required to sync SmartCash network.
install_requires=['aiorpcX>=0.13.2,<0.14', 'attrs',
install_requires=['aiorpcX>=0.13.5,<0.14', 'attrs',
'plyvel', 'pylru', 'aiohttp >= 2'],
packages=setuptools.find_packages(include=('electrumx*',)),
description='ElectrumX Server',

Loading…
Cancel
Save