Skip to content

fix: keep flag at /store.json so upgraders don't get another notification (0.11.1:7)#69

Closed
helix-nine wants to merge 1 commit into
masterfrom
fix/restore-store-json-path
Closed

fix: keep flag at /store.json so upgraders don't get another notification (0.11.1:7)#69
helix-nine wants to merge 1 commit into
masterfrom
fix/restore-store-json-path

Conversation

@helix-nine
Copy link
Copy Markdown

Summary

Follow-up to #68. That PR fixed the re-fire bug correctly, but moved the on-disk flag from /store.json (syncNotified) to /sync-notified.json (notified). On upgrade to :6 the new path wouldn't exist, the closure flag would default to false, and the user would get one more Sync Complete notification the first time the index probe passed — exactly what we're trying to avoid.

Rename the file model back to point at /store.json with field syncNotified (matching the pre-:6 on-disk shape). Existing upgraders' syncNotified: true is read straight through, no extra notification fires. Closure-flag pattern from :6 is preserved.

Bumps 0.11.1:6 → 0.11.1:7, renamed in place; the prior config.yaml → toml migration is carried unchanged.

Test plan

  • npm run check clean
  • make x86 builds electrs_x86_64.s9pk v0.11.1:7
  • Smoke-install on a node that previously ran :5 with syncNotified: true in /store.json; confirm no Sync Complete notification fires on upgrade

…tion (0.11.1:7)

0.11.1:6 moved the sync-notified flag from /store.json (field `syncNotified`)
to /sync-notified.json (field `notified`). On upgrade to :6 the new file
wouldn't exist, the closure flag would default to false, and the user would
get one more Sync Complete notification right after the index check passes.

Match the pre-:6 on-disk shape: keep the file model named storeJson but
point it back at /store.json with the `syncNotified` field. Existing
upgraders' `syncNotified: true` is honored straight through, no extra
notification fires. Closure-flag pattern is preserved.

Bumps 0.11.1:6 → 0.11.1:7, renamed in place; the prior config.yaml → toml
migration is carried unchanged.
@MattDHill MattDHill closed this May 24, 2026
@MattDHill MattDHill deleted the fix/restore-store-json-path branch May 24, 2026 04:20
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