Compare commits
2 Commits
v0.4.9
...
dev-0.4.10
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7d5ceb9a28
|
||
|
|
21db658575
|
@@ -7,6 +7,7 @@ def process_flags(argparser, flags):
|
|||||||
if flags & SyncFlag.RANGE > 0:
|
if flags & SyncFlag.RANGE > 0:
|
||||||
argparser.add_argument('--offset', type=int, help='Block to start sync from. Default is start of history (0).')
|
argparser.add_argument('--offset', type=int, help='Block to start sync from. Default is start of history (0).')
|
||||||
argparser.add_argument('--until', type=int, default=-1, help='Block to stop sync on. Default is stop at block height of first run.')
|
argparser.add_argument('--until', type=int, default=-1, help='Block to stop sync on. Default is stop at block height of first run.')
|
||||||
|
argparser.add_argument('--single', action='store_true', help='Execute a single sync, regardless of previous states')
|
||||||
if flags & SyncFlag.HEAD > 0:
|
if flags & SyncFlag.HEAD > 0:
|
||||||
argparser.add_argument('--head', action='store_true', help='Start from latest block as offset')
|
argparser.add_argument('--head', action='store_true', help='Start from latest block as offset')
|
||||||
argparser.add_argument('--keep-alive', action='store_true', help='Do not stop syncing when caught up')
|
argparser.add_argument('--keep-alive', action='store_true', help='Do not stop syncing when caught up')
|
||||||
|
|||||||
@@ -17,4 +17,6 @@ def process_config(config, args, flags):
|
|||||||
config.add(getattr(args, 'keep_alive'), '_KEEP_ALIVE')
|
config.add(getattr(args, 'keep_alive'), '_KEEP_ALIVE')
|
||||||
config.add(getattr(args, 'head'), '_HEAD')
|
config.add(getattr(args, 'head'), '_HEAD')
|
||||||
|
|
||||||
|
config.add(getattr(args, 'single'), '_SINGLE')
|
||||||
|
|
||||||
return config
|
return config
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
name = chainsyncer
|
name = chainsyncer
|
||||||
version = 0.4.9
|
version = 0.4.10
|
||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user