mirror of
git://holbrook.no/eth-monitor.git
synced 2024-11-26 21:36:45 +01:00
Make rpc dialect work with chain interface
This commit is contained in:
parent
f72b1740d6
commit
a66bb4e12d
@ -1,3 +1,5 @@
|
|||||||
|
- 0.7.6
|
||||||
|
* Make rpc dialect work with chain interface
|
||||||
- 0.7.5
|
- 0.7.5
|
||||||
* Add readme (from man page)
|
* Add readme (from man page)
|
||||||
* Add package descriptino (from man page)
|
* Add package descriptino (from man page)
|
||||||
|
@ -12,9 +12,10 @@ from chainlib.eth.tx import (
|
|||||||
|
|
||||||
class EthChainInterface(ChainInterface):
|
class EthChainInterface(ChainInterface):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self, dialect_filter=None):
|
||||||
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
|
||||||
self._tx_receipt = receipt
|
self._tx_receipt = receipt
|
||||||
self._src_normalize = Tx.src_normalize
|
self._src_normalize = Tx.src_normalize
|
||||||
|
self._dialect_filter = dialect_filter
|
||||||
|
@ -357,13 +357,14 @@ def process_cache_rpc(settings, config):
|
|||||||
|
|
||||||
|
|
||||||
def process_sync_interface(settings, config):
|
def process_sync_interface(settings, config):
|
||||||
ifc = EthChainInterface()
|
ifc = EthChainInterface(dialect=settings.get('RPC_DIALECT_FILTER'))
|
||||||
settings.set('SYNCER_INTERFACE', ifc)
|
settings.set('SYNCER_INTERFACE', ifc)
|
||||||
return settings
|
return settings
|
||||||
|
|
||||||
|
|
||||||
def process_sync(settings, config):
|
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)
|
settings = process_sync_range(settings, config)
|
||||||
return settings
|
return settings
|
||||||
#def process_sync(settings, config):
|
#def process_sync(settings, config):
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
chainlib-eth~=0.4.17
|
chainlib-eth~=0.4.17
|
||||||
chainlib~=0.4.12
|
chainlib~=0.4.15
|
||||||
chainsyncer~=0.7.0
|
chainsyncer~=0.7.0
|
||||||
leveldir~=0.3.0
|
leveldir~=0.3.0
|
||||||
eth-cache~=0.2.0
|
eth-cache~=0.2.0
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
name = eth-monitor
|
name = eth-monitor
|
||||||
version = 0.7.5
|
version = 0.7.6
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user