Skip to content

Conversation

cjjdespres
Copy link
Member

@cjjdespres cjjdespres commented Oct 3, 2025

This will partially fix #17899, in particular the bit of incorrect code I noted in #17899 (comment). Actually, it may actually fix the whole thing, as I note here: #17899 (comment).

For context: when the daemon first boots up, it will try to load existing epoch ledger snapshots from disk. These snapshots might have been created without --hardfork-mode auto. If they were, then there will be no migrated database present alongside the stable one. This would cause exists_backing to fail. The new exists_any_backing checks for only the presence of the stable database. This allows the daemon to load a pre-existing snapshot, potentially by migrating the existing stable database.

I haven't added a test for this yet, but I can confirm based on manual testing that this issue is now resolved. I'll open an issue with some ideas for ledger sync/auto hard fork component tests that we'll want to write.

@cjjdespres cjjdespres requested a review from a team as a code owner October 3, 2025 17:42
@cjjdespres
Copy link
Member Author

!ci-bypass-changelog

@cjjdespres
Copy link
Member Author

!ci-build-me

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.

Investigate possible crash during epoch ledger snapshot syncing

1 participant