Skip to content

avoid tmpnet to create empty genesis on disk #3868

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

Merged
merged 3 commits into from
Apr 9, 2025

Conversation

felipemadero
Copy link
Contributor

Why this should be merged

Certain tmpnet configurations have a nil genesis field, such as fuji/mainnet/local network.
On write, an empty genesis file is always created in such cases, and, when reading the network again,
this genesis field is not nil anymore.
As some parts of the network initialization code check for genesis field being or not nil, it is
safer to just keep the disk storage aligned with the original conf.

How this works

How this was tested

Need to be documented in RELEASES.md?

@felipemadero felipemadero requested a review from maru-ava April 8, 2025 19:37
@felipemadero felipemadero requested a review from maru-ava April 8, 2025 20:05
Copy link
Contributor

@maru-ava maru-ava left a comment

Choose a reason for hiding this comment

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

Much appreciated!

@maru-ava maru-ava added this pull request to the merge queue Apr 9, 2025
Merged via the queue into master with commit 5ea90b6 Apr 9, 2025
24 checks passed
@maru-ava maru-ava deleted the avoid-tmpnet-to-write-empty-genesis branch April 9, 2025 20:33
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.

3 participants