diff --git a/CHANGELOG b/CHANGELOG index d1a8cfc..15d9212 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,5 @@ +- 0.7.6 + * Make rpc dialect work with chain interface - 0.7.5 * Add readme (from man page) * Add package descriptino (from man page) diff --git a/eth_monitor/chain.py b/eth_monitor/chain.py index f28d382..dd0f71d 100644 --- a/eth_monitor/chain.py +++ b/eth_monitor/chain.py @@ -12,9 +12,10 @@ from chainlib.eth.tx import ( class EthChainInterface(ChainInterface): - def __init__(self): + def __init__(self, dialect_filter=None): self._block_latest = block_latest self._block_by_number = block_by_number self._block_from_src = Block.from_src self._tx_receipt = receipt self._src_normalize = Tx.src_normalize + self._dialect_filter = dialect_filter diff --git a/eth_monitor/settings.py b/eth_monitor/settings.py index 657b6d5..92d080f 100644 --- a/eth_monitor/settings.py +++ b/eth_monitor/settings.py @@ -357,13 +357,14 @@ def process_cache_rpc(settings, config): def process_sync_interface(settings, config): - ifc = EthChainInterface() + ifc = EthChainInterface(dialect=settings.get('RPC_DIALECT_FILTER')) settings.set('SYNCER_INTERFACE', ifc) return settings def process_sync(settings, config): - settings.set('SYNCER_INTERFACE', EthChainInterface()) + dialect_filter = settings.get('RPC_DIALECT_FILTER') + settings.set('SYNCER_INTERFACE', EthChainInterface(dialect_filter=dialect_filter)) settings = process_sync_range(settings, config) return settings #def process_sync(settings, config): diff --git a/requirements.txt b/requirements.txt index c297af7..eb97a84 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ chainlib-eth~=0.4.17 -chainlib~=0.4.12 +chainlib~=0.4.15 chainsyncer~=0.7.0 leveldir~=0.3.0 eth-cache~=0.2.0 diff --git a/setup.cfg b/setup.cfg index cb36084..56b8c79 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = eth-monitor -version = 0.7.5 +version = 0.7.6 description = Monitor and cache transactions using match filters author = Louis Holbrook author_email = dev@holbrook.no