Skip to content

Commit

Permalink
allow to_block if consistent with checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelsoup42 committed Sep 9, 2023
1 parent bb533bc commit 3c0859b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cardano_account_pandas_dumper/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ def main():
),
status=1,
)
if args.to_block is not None:
if args.to_block is not None and args.to_block != data_from_api.to_block:
parser.exit(
message=(
"--to_block not allowed with --from_checkpoint (always taken from checkpoint)."
f"--to_block {args.to_block} different from checkpoint's {data_from_api.to_block}."
),
status=1,
)
Expand Down

0 comments on commit 3c0859b

Please sign in to comment.