WIP Fix more typos in daemons
This commit is contained in:
@@ -40,7 +40,7 @@ Monitors a folder for output from the `import_users.py` script, adding the metad
|
||||
|
||||
(Only if you used the `--gift-threshold` option above)
|
||||
|
||||
`python -c config -i <newchain:id> -r <cic_registry_address> -p <eth_provider> --head <datadir>`
|
||||
`python -c config -i <newchain:id> -r <cic_registry_address> -p <eth_provider> --head -y ../keystore/UTC--2021-01-08T17-18-44.521011372Z--eb3907ecad74a0013c259d5874ae7f22dcbcc95c <datadir>`
|
||||
|
||||
This will monitor new mined blocks and send balances to the newly created accounts.
|
||||
|
||||
|
||||
@@ -33,7 +33,9 @@ logg = logging.getLogger()
|
||||
|
||||
fake = Faker(['sl', 'en_US', 'no', 'de', 'ro'])
|
||||
|
||||
config_dir = os.environ.get('CONFINI_DIR', '/usr/local/etc/cic')
|
||||
script_dir = os.path.realpath(os.path.dirname(__file__))
|
||||
#config_dir = os.environ.get('CONFINI_DIR', '/usr/local/etc/cic')
|
||||
config_dir = os.environ.get('CONFINI_DIR', os.path.join(script_dir, 'config'))
|
||||
|
||||
argparser = argparse.ArgumentParser()
|
||||
argparser.add_argument('-c', type=str, default=config_dir, help='Config dir')
|
||||
|
||||
@@ -100,7 +100,14 @@ def register_eth(i, u):
|
||||
|
||||
ps.get_message()
|
||||
m = ps.get_message(timeout=args.timeout)
|
||||
address = json.loads(m['data'])
|
||||
try:
|
||||
address = json.loads(m['data'])
|
||||
except TypeError as e:
|
||||
if m == None:
|
||||
logg.critical('empty response from redis callback (did the service crash?)')
|
||||
else:
|
||||
logg.critical('unexpected response from redis callback: {}'.format(m))
|
||||
sys.exit(1)
|
||||
logg.debug('[{}] register eth {} {}'.format(i, u, address))
|
||||
|
||||
return address
|
||||
|
||||
1
apps/contract-migration/scripts/node_modules/cic-client-meta
generated
vendored
1
apps/contract-migration/scripts/node_modules/cic-client-meta
generated
vendored
@@ -1 +0,0 @@
|
||||
../../../cic-meta
|
||||
4776
apps/contract-migration/scripts/package-lock.json
generated
4776
apps/contract-migration/scripts/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user