4
0
mirror of git://holbrook.no/eth-monitor.git synced 2024-11-23 04:16:46 +01:00

Handle missing context key arg

This commit is contained in:
lash 2023-08-07 12:48:23 +01:00
parent 39ee38b0dc
commit 3dee984eb9
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
5 changed files with 9 additions and 6 deletions

View File

@ -1,3 +1,5 @@
- 0.8.2
* Handle undefined content-key argument
- 0.8.1
* Implement syncer context
* Add key-value parameter for cli, environment, config to pass to syncer context

View File

@ -96,7 +96,6 @@ logg.debug('loaded settings:\n{}'.format(settings))
def main():
logg.info('session is {}'.format(settings.get('SESSION_ID')))
drv = ChainInterfaceDriver(
settings.get('SYNC_STORE'),
settings.get('SYNCER_INTERFACE'),

View File

@ -382,9 +382,11 @@ def process_cache(settings, config):
def process_user_context(settings, config):
ctx_usr = {}
for kv in config.get('ETHMONITOR_CONTEXT_KEY'):
(k, v) = kv.split('=', 1)
ctx_usr[k] = v
ks = config.get('ETHMONITOR_CONTEXT_KEY')
if ks != None:
for kv in ks:
(k, v) = kv.split('=', 1)
ctx_usr[k] = v
ctx = {
'driver': 'eth-monitor',
'usr': ctx_usr,

View File

@ -1,6 +1,6 @@
chainlib-eth~=0.5.0
chainlib~=0.5.0
chainsyncer~=0.8.1
chainsyncer~=0.8.2
leveldir~=0.3.0
eth-cache~=0.3.0
confini~=0.6.3

View File

@ -1,6 +1,6 @@
[metadata]
name = eth-monitor
version = 0.8.1
version = 0.8.2
description = Monitor and cache transactions using match filters
author = Louis Holbrook
author_email = dev@holbrook.no