Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: locked database #77

Merged
merged 4 commits into from
Oct 25, 2024
Merged

fix: locked database #77

merged 4 commits into from
Oct 25, 2024

Conversation

troykessler
Copy link
Member

For some cosmos-sdk versions like v0.47.8 the app binary shortly accesses the blockstore.db although it is started with --with-tendermint=false, resulting in a panic that the database is locked. This PR addresses this issue by rearranging the boot order of the binaries by first starting the app binary so it can open and close the blockstore.db (to retrieve the chain-id) and only after that will KSYNC open the blockstore.db for itself and lock it for the rest of the sync.

@troykessler troykessler self-assigned this Oct 24, 2024
@troykessler troykessler merged commit 7c2b914 into main Oct 25, 2024
@troykessler troykessler deleted the fix/locked-database branch December 5, 2024 12:08
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