Compare commits

1 Commits

Author SHA1 Message Date
lash
d97b3ab1dd Upgrade deps 2022-03-06 19:35:39 +00:00
4 changed files with 6 additions and 13 deletions

View File

@@ -11,7 +11,7 @@ from chainsyncer.db.models.filter import BlockchainSyncFilter
from chainsyncer.db.models.base import SessionBase
from .base import Backend
logg = logging.getLogger(__name__)
logg = logging.getLogger().getChild(__name__)
class SQLBackend(Backend):
@@ -267,8 +267,7 @@ class SQLBackend(Backend):
session.flush()
#if block_height != block_resume:
logg.info('last live id {} {} {}'.format(last_live_id, highest_unsynced_block, block_resume))
if highest_unsynced_block <= block_resume:
if highest_unsynced_block < block_resume:
q = session.query(BlockchainSyncFilter)
q = q.filter(BlockchainSyncFilter.chain_sync_id==last_live_id)

View File

@@ -65,12 +65,6 @@ class BlockPollSyncer(Syncer):
:returns: See chainsyncer.backend.base.Backend.get
"""
(pair, fltr) = self.backend.get()
(target, fltr_target) = self.backend.target()
if target == pair[0]:
logg.info('syncer was done before it started: {}'.format(self))
raise SyncDone(target)
start_tx = pair[1]

View File

@@ -1,4 +1,4 @@
confini~=0.5.1
confini~=0.6.0
semver==2.13.0
hexathon~=0.1.0
chainlib~=0.0.10
hexathon~=0.1.5
chainlib>=0.1.0b1,<=0.1.0

View File

@@ -1,6 +1,6 @@
[metadata]
name = chainsyncer
version = 0.1.1
version = 0.2.0
description = Generic blockchain syncer driver
author = Louis Holbrook
author_email = dev@holbrook.no