Browse Source

Sombernight's fix for #713

Require aiorpcx >= 0.10.3
patch-2
Neil Booth 6 years ago
parent
commit
4b025ca80b
  1. 4
      electrumx/server/controller.py
  2. 1
      electrumx_rpc
  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 the RPC server and wait for the mempool to synchronize. Then
start serving external clients. start serving external clients.
''' '''
if not (0, 10, 1) <= aiorpcx_version < (0, 11): if not (0, 10, 3) <= aiorpcx_version < (0, 11):
raise RuntimeError('aiorpcX version 0.10.x, x >= 1, required') raise RuntimeError('aiorpcX version 0.10.x, x >= 3, required')
env = self.env env = self.env
min_str, max_str = env.coin.SESSIONCLS.protocol_min_max_strings() min_str, max_str = env.coin.SESSIONCLS.protocol_min_max_strings()

1
electrumx_rpc

@ -115,6 +115,7 @@ def main():
try: try:
async with timeout_after(15): async with timeout_after(15):
async with Connector(RPCSession, 'localhost', port) as session: async with Connector(RPCSession, 'localhost', port) as session:
session.framer.max_size = 0
result = await session.send_request(method, args) result = await session.send_request(method, args)
if method in ('query', ): if method in ('query', ):
for line in result: for line in result:

2
setup.py

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

Loading…
Cancel
Save