4
0
mirror of git://holbrook.no/eth-monitor.git synced 2024-12-03 16:16:45 +01:00

Implement RPC batch limit

This commit is contained in:
lash 2023-08-06 14:10:59 +01:00
parent a66bb4e12d
commit 270a35bada
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
5 changed files with 11 additions and 8 deletions

View File

@ -1,3 +1,5 @@
- 0.8.0
* Implement RPC batch limits for syncer
- 0.7.6
* Make rpc dialect work with chain interface
- 0.7.5

View File

@ -12,7 +12,8 @@ from chainlib.eth.tx import (
class EthChainInterface(ChainInterface):
def __init__(self, dialect_filter=None):
def __init__(self, dialect_filter=None, batch_limit=1):
self.batch_limit = batch_limit
self._block_latest = block_latest
self._block_by_number = block_by_number
self._block_from_src = Block.from_src

View File

@ -364,7 +364,7 @@ def process_sync_interface(settings, config):
def process_sync(settings, config):
dialect_filter = settings.get('RPC_DIALECT_FILTER')
settings.set('SYNCER_INTERFACE', EthChainInterface(dialect_filter=dialect_filter))
settings.set('SYNCER_INTERFACE', EthChainInterface(dialect_filter=dialect_filter, batch_limit=settings.get('RPC_BATCH_LIMIT')))
settings = process_sync_range(settings, config)
return settings
#def process_sync(settings, config):

View File

@ -1,6 +1,6 @@
chainlib-eth~=0.4.17
chainlib~=0.4.15
chainsyncer~=0.7.0
chainlib-eth~=0.5.0
chainlib~=0.5.0
chainsyncer~=0.8.0
leveldir~=0.3.0
eth-cache~=0.2.0
eth-cache~=0.3.0
confini~=0.6.3

View File

@ -1,6 +1,6 @@
[metadata]
name = eth-monitor
version = 0.7.6
version = 0.8.0
description = Monitor and cache transactions using match filters
author = Louis Holbrook
author_email = dev@holbrook.no
@ -26,7 +26,7 @@ licence_files =
[options]
include_package_data = True
python_requires = >=3.7
python_requires = >=3.8
packages =
eth_monitor
eth_monitor.importers