rpc connections limited to 8
This commit is contained in:
@@ -82,7 +82,7 @@ class BlockStateRunner(BlockProgressor):
|
||||
log.debug('connecting to ws provider')
|
||||
await w3ws.provider.connect()
|
||||
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:
|
||||
async for message in w3ws.ws.process_subscriptions():
|
||||
block = Block(chain_id, message['result'])
|
||||
|
||||
Reference in New Issue
Block a user