Skip to content

fix(bioforest): add per-chain genesisBlock config support - #201

Merged
Gaubee merged 1 commit into
mainfrom
fix/genesis-block-config
Jan 10, 2026
Merged

Gaubee merged 1 commit into
mainfrom
fix/genesis-block-config

Conversation

@Gaubee

@Gaubee Gaubee commented Jan 10, 2026

Copy link
Copy Markdown
Contributor

Problem

Genesis block 404 error when deploying to GitHub Pages - the chainId (e.g., bfmetav2) doesn't always match the genesis filename (e.g., bfmeta.json).

Solution

  1. Add config.genesisBlock field to biowallet API entries in default-chains.json
  2. Modify fetchGenesisBlock to accept optional genesisBlockPath parameter
  3. Add chainConfigService.getBiowalletGenesisBlock() method
  4. Add missing bfmetav2.json genesis block file

Changes

  • public/configs/default-chains.json: Added genesisBlock config to all bioforest chains
  • public/configs/genesis/bfmetav2.json: New genesis block file for BFMeta V2
  • src/services/bioforest-sdk/index.ts: Support optional genesisBlockPath parameter
  • src/services/chain-config/service.ts: Add getBiowalletGenesisBlock() method
  • src/services/chain-adapter/bioforest/transaction-service.ts: Pass genesisBlock config

Fixes #194

- Add bfmetav2.json genesis block file
- Add config.genesisBlock field to biowallet API entries in default-chains.json
- Modify fetchGenesisBlock to accept optional genesisBlockPath parameter
- Add chainConfigService.getBiowalletGenesisBlock() method
- Update BioforestTransactionService to pass genesisBlock config

This allows each chain to specify a custom genesis block path relative
to the configs directory, fixing the 404 issue when chainId doesn't
match the genesis filename.

Fixes #194
@Gaubee
Gaubee merged commit 06be03e into main Jan 10, 2026
5 checks passed
@Gaubee
Gaubee deleted the fix/genesis-block-config branch January 10, 2026 09:29
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.

fix(bioforest): Genesis block 404 on GitHub Pages deployment

1 participant