Skip to content

fix(scripts): fix progress calculation message, handle fully synced state, and strip binary checksum prefix - #89

Open
yappermoar-boop wants to merge 1 commit into
inkonchain:mainfrom
yappermoar-boop:fix-sync-progress-reporting-and-checksum-parsing
Open

fix(scripts): fix progress calculation message, handle fully synced state, and strip binary checksum prefix#89
yappermoar-boop wants to merge 1 commit into
inkonchain:mainfrom
yappermoar-boop:fix-sync-progress-reporting-and-checksum-parsing

Conversation

@yappermoar-boop

Copy link
Copy Markdown

In progress.sh, corrected the inverted error message when BEHIND < 0, added early exit for fully synced nodes (BEHIND == 0), and structured time estimate reporting using if/elif/else to avoid duplicate output. In scripts/utils.sh, stripped optional leading asterisk from binary-mode checksum files in verify_sha256_checksum.

@kutluhaneth46 kutluhaneth46 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review

Two solid fixes in one PR:

  1. progress.sh: clearer error when local > remote, clean exit on fully synced (BEHIND == 0), and mutually exclusive ETA buckets (same class of bug as #81, with a nicer fully-synced path).
  2. scripts/utils.sh: stripping a leading * from the checksum filename handles the GNU sha256sum --binary / *filename form, which previously failed the format check.

LGTM.

@kutluhaneth46 kutluhaneth46 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review

Two solid fixes in one PR:

  1. progress.sh: clearer error when local > remote, clean exit on fully synced (BEHIND == 0), and mutually exclusive ETA buckets (same class of bug as #81, with a nicer fully-synced path).
  2. scripts/utils.sh: stripping a leading * from the checksum filename handles the GNU sha256sum --binary / *filename form, which previously failed the format check.

Looks good from a community review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants