commit 3603b9323fcdde7a0a21db1cf9041e2286058348
parent e02b9b5d7e202bb10fbd195dce736784f21d50d8
Author: lash <dev@holbrook.no>
Date: Mon, 21 Aug 2023 07:57:37 +0100
Reset filter on keep-alive before closing down
Diffstat:
4 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/CHANGELOG b/CHANGELOG
@@ -1,3 +1,6 @@
+* 0.8.6
+ - Correct python requirement to 3.8-3.10
+ - Avoid FILTERDONE crash when using --keep-alive
* 0.8.5
- Upgrade shep to eliminate state deletion after interrupted partial filter list execution
- Add block/tx break points for filter breaks in unittest filter mocker
diff --git a/chainsyncer/store/base.py b/chainsyncer/store/base.py
@@ -227,6 +227,7 @@ class SyncStore:
state_bytes = sync_state_serialize(item.cursor, 0, item.cursor)
self.state.replace(str(item.offset), state_bytes)
self.filter_state.put(str(item.cursor))
+ self.filter_state.set(str(item.cursor), self.filter_state.state_store.RESET)
SyncItem(item.offset, -1, self.state, self.filter_state)
logg.info('New sync state start at block number {} for next head sync backfill'.format(item.cursor))
diff --git a/run_tests.sh b/run_tests.sh
@@ -3,7 +3,7 @@
set -e
set -x
path=${PYTHONPATH:-.}
-export PYTHONPATH=$path
+export PYTHONPATH=$path:.
>&2 echo using pythonpath $PYTHONPATH
for f in `ls tests/*.py`; do
python $f
diff --git a/setup.cfg b/setup.cfg
@@ -1,6 +1,6 @@
[metadata]
name = chainsyncer
-version = 0.8.5
+version = 0.8.6rc1
description = Generic blockchain syncer driver
author = Louis Holbrook
author_email = dev@holbrook.no
@@ -22,7 +22,7 @@ licence_files =
[options]
include_package_data = True
-python_requires = >= 3.7
+python_requires = >= 3.8
packages =
chainsyncer
chainsyncer.driver