mirror of
git://holbrook.no/eth-monitor.git
synced 2024-12-04 08:26:47 +01:00
Implement RPC batch limit
This commit is contained in:
parent
a66bb4e12d
commit
270a35bada
@ -1,3 +1,5 @@
|
|||||||
|
- 0.8.0
|
||||||
|
* Implement RPC batch limits for syncer
|
||||||
- 0.7.6
|
- 0.7.6
|
||||||
* Make rpc dialect work with chain interface
|
* Make rpc dialect work with chain interface
|
||||||
- 0.7.5
|
- 0.7.5
|
||||||
|
@ -12,7 +12,8 @@ from chainlib.eth.tx import (
|
|||||||
|
|
||||||
class EthChainInterface(ChainInterface):
|
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_latest = block_latest
|
||||||
self._block_by_number = block_by_number
|
self._block_by_number = block_by_number
|
||||||
self._block_from_src = Block.from_src
|
self._block_from_src = Block.from_src
|
||||||
|
@ -364,7 +364,7 @@ def process_sync_interface(settings, config):
|
|||||||
|
|
||||||
def process_sync(settings, config):
|
def process_sync(settings, config):
|
||||||
dialect_filter = settings.get('RPC_DIALECT_FILTER')
|
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)
|
settings = process_sync_range(settings, config)
|
||||||
return settings
|
return settings
|
||||||
#def process_sync(settings, config):
|
#def process_sync(settings, config):
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
chainlib-eth~=0.4.17
|
chainlib-eth~=0.5.0
|
||||||
chainlib~=0.4.15
|
chainlib~=0.5.0
|
||||||
chainsyncer~=0.7.0
|
chainsyncer~=0.8.0
|
||||||
leveldir~=0.3.0
|
leveldir~=0.3.0
|
||||||
eth-cache~=0.2.0
|
eth-cache~=0.3.0
|
||||||
confini~=0.6.3
|
confini~=0.6.3
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
name = eth-monitor
|
name = eth-monitor
|
||||||
version = 0.7.6
|
version = 0.8.0
|
||||||
description = Monitor and cache transactions using match filters
|
description = Monitor and cache transactions using match filters
|
||||||
author = Louis Holbrook
|
author = Louis Holbrook
|
||||||
author_email = dev@holbrook.no
|
author_email = dev@holbrook.no
|
||||||
@ -26,7 +26,7 @@ licence_files =
|
|||||||
|
|
||||||
[options]
|
[options]
|
||||||
include_package_data = True
|
include_package_data = True
|
||||||
python_requires = >=3.7
|
python_requires = >=3.8
|
||||||
packages =
|
packages =
|
||||||
eth_monitor
|
eth_monitor
|
||||||
eth_monitor.importers
|
eth_monitor.importers
|
||||||
|
Loading…
Reference in New Issue
Block a user