Skip to content

Conversation

cjjdespres
Copy link
Member

The Chain_state_locations module tracks the locations on disk of the components that are considered part of the "chain state". These chain state component locations are subdirectories of the chain state directory.

The chain state directory itself is currently the mina config directory, so the chain state components are all still located at their compatible locations at the top level of the mina config directory. Moving the logic of computing these locations into one module will make it easier to change how the chain state directory is computed in future hard forks.

This should be pure refactoring; no component locations have changed.

For reference, the associated MIP draft is here: MinaProtocol/MIPs#32. The Chain_state_locations module may need to be adjusted as MIP review proceeds, to reflect what is and is not part of the chain state.

Closes: #17762

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

!ci-bypass-changelog

@cjjdespres
Copy link
Member Author

!ci-build-me

The Chain_state_locations module tracks the locations on disk of the
components that are considered part of the "chain state". These chain
state component locations are subdirectories of the chain state
directory.

The chain state directory itself is currently the mina config directory,
so the chain state components are all still located at their compatible
locations at the top level of the mina config directory. Moving the
logic of computing these locations into one module will make it easier
to change how the chain state directory is computed in future hard
forks.
@cjjdespres cjjdespres force-pushed the cjjdespres/chain-state-dir branch from 3d318ff to 3f5ffdb Compare October 9, 2025 19:20
@cjjdespres
Copy link
Member Author

!ci-build-me

@glyh
Copy link
Member

glyh commented Oct 13, 2025

I think we can already do some magic by using symlink - organize data however we want underlying, but expose a stable disk interface to daemon?

^ But yes this could be a follow up for sure.

@glyh
Copy link
Member

glyh commented Oct 13, 2025

Also, we need to confirm if the places touched in this PR are everywhere we refer to FS. If we want to rename those folders.

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.

Add notion of chain state directory to daemon

2 participants