Fix missing history syncer in cic-cache-tracker
This commit is contained in:
parent
7dee7de26e
commit
bb941acd7e
@ -29,6 +29,7 @@ from hexathon import (
|
|||||||
from chainsyncer.backend import SyncerBackend
|
from chainsyncer.backend import SyncerBackend
|
||||||
from chainsyncer.driver import (
|
from chainsyncer.driver import (
|
||||||
HeadSyncer,
|
HeadSyncer,
|
||||||
|
HistorySyncer,
|
||||||
)
|
)
|
||||||
from chainsyncer.db.models.base import SessionBase
|
from chainsyncer.db.models.base import SessionBase
|
||||||
|
|
||||||
@ -76,13 +77,15 @@ def main():
|
|||||||
|
|
||||||
if len(syncer_backends) == 0:
|
if len(syncer_backends) == 0:
|
||||||
logg.info('found no backends to resume')
|
logg.info('found no backends to resume')
|
||||||
syncer_backends.append(SyncerBackend.initial(chain_spec, block_offset))
|
syncers.append(SyncerBackend.initial(chain_spec, block_offset))
|
||||||
else:
|
else:
|
||||||
for syncer_backend in syncer_backends:
|
for syncer_backend in syncer_backends:
|
||||||
logg.info('resuming sync session {}'.format(syncer_backend))
|
logg.info('resuming sync session {}'.format(syncer_backend))
|
||||||
|
|
||||||
syncer_backends.append(SyncerBackend.live(chain_spec, block_offset+1))
|
for syncer_backend in syncer_backends:
|
||||||
|
syncers.append(HistorySyncer(syncer_backend))
|
||||||
|
|
||||||
|
syncer_backend = SyncerBackend.live(chain_spec, block_offset+1)
|
||||||
syncers.append(HeadSyncer(syncer_backend))
|
syncers.append(HeadSyncer(syncer_backend))
|
||||||
|
|
||||||
trusted_addresses_src = config.get('CIC_TRUST_ADDRESS')
|
trusted_addresses_src = config.get('CIC_TRUST_ADDRESS')
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
cic-base~=0.1.2a62
|
cic-base~=0.1.2a66
|
||||||
alembic==1.4.2
|
alembic==1.4.2
|
||||||
confini~=0.3.6rc3
|
confini~=0.3.6rc3
|
||||||
uwsgi==2.0.19.1
|
uwsgi==2.0.19.1
|
||||||
moolb~=0.1.0
|
moolb~=0.1.0
|
||||||
cic-eth-registry~=0.5.4a12
|
cic-eth-registry~=0.5.4a13
|
||||||
SQLAlchemy==1.3.20
|
SQLAlchemy==1.3.20
|
||||||
semver==2.13.0
|
semver==2.13.0
|
||||||
psycopg2==2.8.6
|
psycopg2==2.8.6
|
||||||
celery==4.4.7
|
celery==4.4.7
|
||||||
redis==3.5.3
|
redis==3.5.3
|
||||||
chainlib~=0.0.2a5
|
chainlib~=0.0.2a10
|
||||||
chainsyncer~=0.0.1a21
|
chainsyncer[sql]~=0.0.2a1
|
||||||
|
Loading…
Reference in New Issue
Block a user