Skip to content

fix: stamper store was dirty#5515

Merged
sbackend123 merged 1 commit into
masterfrom
fix/stamper-store-was-dirty
Jun 24, 2026
Merged

fix: stamper store was dirty#5515
sbackend123 merged 1 commit into
masterfrom
fix/stamper-store-was-dirty

Conversation

@sbackend123

Copy link
Copy Markdown
Contributor

Checklist

  • I have read the coding guide.
  • My change requires a documentation update, and I have done it.
  • I have added tests to cover my changes.
  • I have filled out the description and linked the related issues.

Description

Related to #5392
leveldbstore and InitStamperStore return dirty (true = unclean shutdown), but in node.go it was named wasClean and passed to NewService as if it meant a clean shutdown. As a result, recovery did not run after a crash and could run unnecessarily after a normal restart.

Fix: use consistent wasDirty semantics across the whole chain, with if wasDirty and no inversions.

Open API Spec Version Changes (if applicable)

Motivation and Context (Optional)

Related Issue (Optional)

Screenshots (if appropriate):

AI Disclosure

  • This PR contains code that has been generated by an LLM.
  • I have reviewed the AI generated code thoroughly.
  • I possess the technical expertise to responsibly review the code generated in this PR.

@sbackend123 sbackend123 force-pushed the fix/stamper-store-was-dirty branch from 376c94f to a1c7f72 Compare June 23, 2026 10:25
@sbackend123 sbackend123 changed the title Fix/stamper store was dirty Fix: stamper store was dirty Jun 23, 2026
@sbackend123 sbackend123 changed the title Fix: stamper store was dirty fix: stamper store was dirty Jun 23, 2026
@sbackend123 sbackend123 merged commit 5441f28 into master Jun 24, 2026
15 of 17 checks passed
@sbackend123 sbackend123 deleted the fix/stamper-store-was-dirty branch June 24, 2026 10:00
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.

3 participants