Skip to content

Use genesis hash in filename instead of cluster prefix#8608

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/update-genesis-file-naming
Draft

Use genesis hash in filename instead of cluster prefix#8608
Copilot wants to merge 3 commits intomainfrom
copilot/update-genesis-file-naming

Conversation

Copy link
Contributor

Copilot AI commented Mar 1, 2026

Genesis files were named by cluster (mainnet-genesis.bin, testnet-genesis.bin), which doesn't disambiguate between different genesis configurations.

Changes

  • fd_config.c: Generate path as genesis-{hash}.bin using consensus.expected_genesis_hash directly instead of mapping to cluster prefix
  • default.toml: Update documentation to reflect new naming pattern
  • Fallback to genesis-local.bin when hash is empty/null

Example

Before:

/home/fire/.firedancer/fd1/mainnet-genesis.bin

After:

/home/fire/.firedancer/fd1/genesis-5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d.bin
Original prompt

This section details on the original issue you should resolve

<issue_title>Naming pattern genesis-[hash].bin</issue_title>
<issue_description>Instead of mainnet-genesis.bin, call blobs genesis-[hash].bin to disambiguate</issue_description>

<agent_instructions>Keep comments minimal </agent_instructions>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI requested review from Copilot and removed request for Copilot March 1, 2026 17:59
Co-authored-by: ripatel-fd <113896534+ripatel-fd@users.noreply.github.com>
Copilot AI requested review from Copilot and removed request for Copilot March 1, 2026 18:02
Co-authored-by: ripatel-fd <113896534+ripatel-fd@users.noreply.github.com>
Copilot AI requested review from Copilot and removed request for Copilot March 1, 2026 18:03
Copilot AI changed the title [WIP] Update naming pattern for genesis files Use genesis hash in filename instead of cluster prefix Mar 1, 2026
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.

Naming pattern genesis-[hash].bin

2 participants