Upgrade chainlib, shep (state lock integrity)
This commit is contained in:
parent
5df6656981
commit
2c8ad85307
@ -1,3 +1,6 @@
|
|||||||
|
* 0.4.5
|
||||||
|
- Upgrade chainlib
|
||||||
|
- Upgrade shep to guarantee atomic state locks
|
||||||
* 0.4.4
|
* 0.4.4
|
||||||
- Reinstate tx index bump in sync state on filter execution complete
|
- Reinstate tx index bump in sync state on filter execution complete
|
||||||
* 0.4.3
|
* 0.4.3
|
||||||
|
@ -97,7 +97,6 @@ class FilterState:
|
|||||||
if self.scan != None:
|
if self.scan != None:
|
||||||
ks = self.scan()
|
ks = self.scan()
|
||||||
for v in ks: #os.listdir(self.scan_path):
|
for v in ks: #os.listdir(self.scan_path):
|
||||||
logg.debug('ks {}'.format(v))
|
|
||||||
k = None
|
k = None
|
||||||
try:
|
try:
|
||||||
k = self.state_store.from_elements(v)
|
k = self.state_store.from_elements(v)
|
||||||
|
@ -1 +0,0 @@
|
|||||||
|
|
@ -43,7 +43,6 @@ class SyncItem:
|
|||||||
self.filter_state = filter_state
|
self.filter_state = filter_state
|
||||||
self.state_key = str(offset)
|
self.state_key = str(offset)
|
||||||
|
|
||||||
logg.debug('get key {}'.format(self.state_key))
|
|
||||||
v = self.sync_state.get(self.state_key)
|
v = self.sync_state.get(self.state_key)
|
||||||
|
|
||||||
(self.cursor, self.tx_cursor, self.target) = sync_state_deserialize(v)
|
(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)
|
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):
|
def advance(self, ignore_lock=False):
|
||||||
if self.skip_filter:
|
if self.skip_filter:
|
||||||
raise FilterDone()
|
raise FilterDone()
|
||||||
@ -267,7 +262,9 @@ class SyncStore:
|
|||||||
self.item_keys.append(k)
|
self.item_keys.append(k)
|
||||||
logg.info('added existing {}'.format(o))
|
logg.info('added existing {}'.format(o))
|
||||||
|
|
||||||
self.get_target()
|
v = self.get_target()
|
||||||
|
if v != None:
|
||||||
|
target = v
|
||||||
|
|
||||||
if len(thresholds) == 0:
|
if len(thresholds) == 0:
|
||||||
if self.target != None:
|
if self.target != None:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
confini~=0.6.0
|
confini~=0.6.0
|
||||||
semver==2.13.0
|
semver==2.13.0
|
||||||
hexathon~=0.1.5
|
hexathon~=0.1.6
|
||||||
chainlib~=0.1.1
|
chainlib~=0.1.2
|
||||||
shep~=0.2.3
|
shep~=0.2.6
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
name = chainsyncer
|
name = chainsyncer
|
||||||
version = 0.4.4
|
version = 0.4.5
|
||||||
description = Generic blockchain syncer driver
|
description = Generic blockchain syncer driver
|
||||||
author = Louis Holbrook
|
author = Louis Holbrook
|
||||||
author_email = dev@holbrook.no
|
author_email = dev@holbrook.no
|
||||||
|
Loading…
Reference in New Issue
Block a user