Skip to content

Conversation

glyh
Copy link
Member

@glyh glyh commented Aug 22, 2025

It doesn't make sense to me to create a new genesis ledger backed by a temp folder. Real use case should be covered by either Ephemeral or Path _

Checking the code more closely, there's no way to retrieve the path storing a newly created genesis ledger on disk anyway, so it should behave just like Ephemeral but slower.

@glyh glyh requested a review from a team as a code owner August 22, 2025 05:23
@glyh
Copy link
Member Author

glyh commented Aug 22, 2025

!ci-build-me

@glyh glyh force-pushed the lyh/remove-genesis-ledger-new branch from 2563b29 to 7f2a3af Compare August 22, 2025 13:50
@glyh
Copy link
Member Author

glyh commented Aug 22, 2025

!ci-build-me

| `New ->
lazy
( `Root
(Ledger.Root.create_temporary
Copy link
Member Author

@glyh glyh Aug 22, 2025

Choose a reason for hiding this comment

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

We could probably remove Ledger.Root.create_temporary later as well, it doesn't seem like we need it in real code. It's only used in tests.

@glyh glyh added the enhancement Not big enough to be a feature, but is a smaller improvement label Aug 22, 2025
@glyh
Copy link
Member Author

glyh commented Aug 22, 2025

Looks like ephemeral ledger should've been a mask, but we're set batching the underlying null ledger for some reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Not big enough to be a feature, but is a smaller improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant