Bump version

This commit is contained in:
nolash 2021-02-24 12:47:18 +01:00
parent 70873e4aec
commit d9196f5ff5
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
3 changed files with 8 additions and 4 deletions

View File

@ -5,6 +5,7 @@ import time
import signal
# external imports
import sqlalchemy
from chainlib.eth.block import (
block_by_number,
Block,
@ -92,6 +93,10 @@ class BlockPollSyncer(Syncer):
return self.backend.get()
except NoBlockForYou as e:
break
# TODO: To properly handle this, ensure that previous request is rolled back
# except sqlalchemy.exc.OperationalError as e:
# logg.error('database error: {}'.format(e))
# break
last_block = block.number
self.process(conn, block)
start_tx = 0
@ -116,6 +121,7 @@ class HeadSyncer(BlockPollSyncer):
self.backend.set(block.number, i)
self.filter.apply(conn, block, tx)
except IndexError as e:
logg.debug('index error syncer rcpt get {}'.format(e))
self.backend.set(block.number + 1, 0)
break
i += 1
@ -130,7 +136,6 @@ class HeadSyncer(BlockPollSyncer):
if r == None:
raise NoBlockForYou()
b = Block(r)
logg.debug('get {}'.format(b))
return b
@ -161,7 +166,6 @@ class HistorySyncer(HeadSyncer):
if r == None:
raise NoBlockForYou()
b = Block(r)
logg.debug('get {}'.format(b))
return b

View File

@ -3,4 +3,4 @@ SQLAlchemy==1.3.20
confini~=0.3.6b2
semver==2.13.0
hexathon~=0.0.1a3
chainlib~=0.0.1a17
chainlib~=0.0.1a18

View File

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