Upgrade chainlib, shep (state lock integrity)

This commit is contained in:
lash 2022-05-05 14:49:34 +00:00
parent 5df6656981
commit 2c8ad85307
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
6 changed files with 10 additions and 12 deletions

View File

@ -1,3 +1,6 @@
* 0.4.5
- Upgrade chainlib
- Upgrade shep to guarantee atomic state locks
* 0.4.4
- Reinstate tx index bump in sync state on filter execution complete
* 0.4.3

View File

@ -97,7 +97,6 @@ class FilterState:
if self.scan != None:
ks = self.scan()
for v in ks: #os.listdir(self.scan_path):
logg.debug('ks {}'.format(v))
k = None
try:
k = self.state_store.from_elements(v)

View File

@ -1 +0,0 @@

View File

@ -43,7 +43,6 @@ class SyncItem:
self.filter_state = filter_state
self.state_key = str(offset)
logg.debug('get key {}'.format(self.state_key))
v = self.sync_state.get(self.state_key)
(self.cursor, self.tx_cursor, self.target) = sync_state_deserialize(v)
@ -101,10 +100,6 @@ class SyncItem:
self.sync_state.replace(self.state_key, b)
def __find_advance(self):
v = self.filter_state.state(self.state_key)
def advance(self, ignore_lock=False):
if self.skip_filter:
raise FilterDone()
@ -267,7 +262,9 @@ class SyncStore:
self.item_keys.append(k)
logg.info('added existing {}'.format(o))
self.get_target()
v = self.get_target()
if v != None:
target = v
if len(thresholds) == 0:
if self.target != None:

View File

@ -1,5 +1,5 @@
confini~=0.6.0
semver==2.13.0
hexathon~=0.1.5
chainlib~=0.1.1
shep~=0.2.3
hexathon~=0.1.6
chainlib~=0.1.2
shep~=0.2.6

View File

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