rpc connections limited to 8
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
rpc_url = 'arbitrum_dxod'
|
rpc_url = 'arbitrum_dxod'
|
||||||
ws_url = 'arbitrum_dxod_ws'
|
ws_url = 'arbitrum_dxod_ws'
|
||||||
archive_url = 'arbitrum_alchemy'
|
archive_url = 'arbitrum_alchemy'
|
||||||
concurrent_rpc_connections=20
|
concurrent_rpc_connections=8
|
||||||
metrics_port=9001
|
metrics_port=9001
|
||||||
metadata = '' # this setting approves no tokens
|
metadata = '' # this setting approves no tokens
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ class BlockStateRunner(BlockProgressor):
|
|||||||
log.debug('connecting to ws provider')
|
log.debug('connecting to ws provider')
|
||||||
await w3ws.provider.connect()
|
await w3ws.provider.connect()
|
||||||
subscription = await w3ws.eth.subscribe('newHeads') # the return value of this call is not consistent between anvil/hardhat/rpc.
|
subscription = await w3ws.eth.subscribe('newHeads') # the return value of this call is not consistent between anvil/hardhat/rpc.
|
||||||
log.debug(f'subscribed to newHeads {subscription}')
|
# log.debug(f'subscribed to newHeads {subscription}')
|
||||||
while self.running:
|
while self.running:
|
||||||
async for message in w3ws.ws.process_subscriptions():
|
async for message in w3ws.ws.process_subscriptions():
|
||||||
block = Block(chain_id, message['result'])
|
block = Block(chain_id, message['result'])
|
||||||
|
|||||||
Reference in New Issue
Block a user