Skip to content

Conversation

@glyh
Copy link
Member

@glyh glyh commented Sep 15, 2025

Closes #17747 and partially #17754

For epoch ledger parts would be done in another PR.

@glyh glyh changed the title Delay genesis ledger conversion Avoid maintaining converted genesis ledgers Sep 17, 2025
@glyh glyh marked this pull request as ready for review September 17, 2025 01:32
@glyh glyh requested a review from a team as a code owner September 17, 2025 01:32
@glyh glyh moved this to Blocked in OCaml Node Team Board Sep 17, 2025
@glyh glyh force-pushed the lyh/remove-backing-control-for-genesis branch 2 times, most recently from 5337801 to af4886b Compare September 17, 2025 01:56
@glyh glyh changed the title Avoid maintaining converted genesis ledgers Delay converting genesis Sep 17, 2025
Mina_ledger.Ledger.Root.Config.(
equal_backing_type ledger_backing Converting_db)
then
Persistent_root.convert_instance_exn ~logger ~here:[%here] persistent_root ;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is where we run the conversion.

@glyh glyh changed the title Delay converting genesis Delay converting genesis eledgers Sep 17, 2025
@glyh glyh changed the title Delay converting genesis eledgers Delay converting genesis ledgers Sep 17, 2025
@glyh
Copy link
Member Author

glyh commented Sep 17, 2025

Actually, we might have a bug here. if downstream refer to the root and save it. lifting a stable root to converting root will create a new variable. I should've store the ref inside the root instead.

Still, except for that this should be okay for a review.

Will fix when I'm here tomorrow.

@cjjdespres
Copy link
Member

Still, except for that this should be okay for a review.

Sorry, I missed this part of the comment.

@glyh
Copy link
Member Author

glyh commented Oct 4, 2025

I guess this is already done in your other PRs? If not, this need to be reworked because related code had been touched though.

@glyh glyh closed this Oct 4, 2025
@github-project-automation github-project-automation bot moved this from Blocked to Done in OCaml Node Team Board Oct 4, 2025
@glyh glyh reopened this Oct 4, 2025
@glyh glyh marked this pull request as draft October 18, 2025 05:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Avoid maintaining converted genesis ledgers

3 participants