Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

cardano-testnet: Recompute genesis hashes in configuration.yaml if missing

クローズ
#6,456 コメント 5 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

@palas がすでに取り組んでいます。

2026年2月25日 から。

評価

この issue はまだ評価されていません。

説明

minorfix

Problem

create-env deliberately writes configuration.yaml without genesis hashes (WithoutHashes), so users can edit genesis files without recomputing hashes. However, cardanoTestnet (the runtime phase) never rewrites configuration.yaml, so when using cardano --node-env, the config lacks hashes entirely.

In the direct cardano path, createTestnetEnv uses WithHashes, so the config always has hashes. This is an inconsistency between the two paths.

Proposed fix

At the start of cardanoTestnet in Testnet/Start/Cardano.hs (~L241), after reading the config file, check if ByronGenesisHash key is present. If not, call createConfigJson and rewrite configuration.yaml. This is ~15 lines of additive code. If hashes are already present, nothing changes.

Depends on

None (independent)

Type: Consistency fix

Effort: Low (~15 lines)

Risk: Low

主要言語
Haskell
スター
3.2k
フォーク
763
平均マージ
2日 6時間
マージ済み PR(30日)
18

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

IntersectMBO/cardano-node のほかの issue

IntersectMBO/cardano-node の issue をすべて見る

似ている issue

Haskell の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。