Skip to content

[Genesis] Improve genesis generation and verification#694

Merged
NachoPal merged 45 commits into
mainfrom
nacho/generate-mainnet-chain-spec
Mar 12, 2026
Merged

[Genesis] Improve genesis generation and verification#694
NachoPal merged 45 commits into
mainfrom
nacho/generate-mainnet-chain-spec

Conversation

@NachoPal

@NachoPal NachoPal commented Feb 17, 2026

Copy link
Copy Markdown
Contributor

Overview

  • Genesis construction script (genesis-construction.sh) with interactive wizard supporting skippable verification steps, genesis messages, and fee checking
  • Fixed genesis query bugs: policy_id decoding, asset name encoding, SQL amount casting to BIGINT
  • UTXO filtering in cnight genesis to exclude UTXOs without a prior registration
  • Enabled all verification steps for mainnet genesis
  • Added genesis message
  • Verify ledger fees
  • Add bootnodes as a config file
  • Improve genesis generarion addid --no-cache to Earthly commands

#694

🗹 TODO before merging

  • Ready

📌 Submission Checklist

  • Changes are backward-compatible (or flagged if breaking)
  • Pull request description explains why the change is needed
  • Self-reviewed the diff
  • I have included a change file, or skipped for this reason:
  • If the changes introduce a new feature, I have bumped the node minor version
  • Update documentation (if relevant)
  • Updated AGENTS.md if build commands, architecture, or workflows changed
  • No new todos introduced

🧪 Testing Evidence

Please describe any additional testing aside from CI:

  • Additional tests are provided (if possible)

🔱 Fork Strategy

  • Node Runtime Update
  • Node Client Update
  • Other:
  • N/A

Links

NachoPal and others added 10 commits February 16, 2026 10:11
* switch to collection with deterministic iteration.

Signed-off-by: Giles Cope <gilescope@gmail.com>

* fix: keep existing preview ordering

Signed-off-by: Giles Cope <gilescope@gmail.com>

* chore: add changelog

Signed-off-by: Giles Cope <gilescope@gmail.com>

---------

Signed-off-by: Giles Cope <gilescope@gmail.com>
@NachoPal NachoPal requested a review from a team as a code owner February 17, 2026 13:07
@github-actions

github-actions Bot commented Feb 17, 2026

Copy link
Copy Markdown
Contributor

kics-logo

KICS version: v2.1.19

Category Results
CRITICAL CRITICAL 0
HIGH HIGH 2
MEDIUM MEDIUM 52
LOW LOW 3
INFO INFO 64
TRACE TRACE 0
TOTAL TOTAL 121
Metric Values
Files scanned placeholder 27
Files parsed placeholder 27
Files failed to scan placeholder 0
Total executed queries placeholder 73
Queries failed to execute placeholder 0
Execution time placeholder 12

Comment thread scripts/genesis/db-sync/docker-compose.yml Fixed
Comment thread scripts/genesis/db-sync/docker-compose.yml Fixed
Comment thread scripts/genesis/db-sync/docker-compose.yml Dismissed
Comment thread scripts/genesis/db-sync/docker-compose.yml Dismissed
Comment thread scripts/genesis/db-sync/docker-compose.yml Dismissed
Comment thread scripts/genesis/db-sync/docker-compose.yml Dismissed
Comment thread scripts/genesis/db-sync/docker-compose.yml Dismissed
Comment thread scripts/genesis/db-sync/docker-compose.yml Dismissed
Comment thread scripts/genesis/db-sync/docker-compose.yml Dismissed
Comment thread scripts/genesis/db-sync/docker-compose.yml Dismissed
@NachoPal NachoPal changed the title [DO NOT MERGE] Generate mainnet chain spec [Genesis] Improve genesis generation and verification Mar 11, 2026
Comment thread scripts/genesis/db-sync/docker-compose.yml Dismissed
Comment thread scripts/genesis/db-sync/docker-compose.yml Dismissed

@gilescope gilescope left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I can't comment on the mainnet config specifics, that will need to be verified later.

@gilescope gilescope enabled auto-merge March 11, 2026 19:08
@gilescope gilescope added this pull request to the merge queue Mar 11, 2026
@NachoPal NachoPal removed this pull request from the merge queue due to a manual request Mar 11, 2026
@NachoPal

NachoPal commented Mar 11, 2026

Copy link
Copy Markdown
Contributor Author

I can't comment on the mainnet config specifics, that will need to be verified later.

I need to wait for #906 and #894 to recreate the chain-spec

I'll pull main when ready

gilescope added a commit that referenced this pull request Mar 11, 2026
* feat: add deterministic runtime builds

* chore: update change file

* fix: srtool target clean-up

* chore: updare to new mainnet values

* set cnight to empty for testing

* switch to collection with deterministic iteration. (#678)

* switch to collection with deterministic iteration.

Signed-off-by: Giles Cope <gilescope@gmail.com>

* fix: keep existing preview ordering

Signed-off-by: Giles Cope <gilescope@gmail.com>

* chore: add changelog

Signed-off-by: Giles Cope <gilescope@gmail.com>

---------

Signed-off-by: Giles Cope <gilescope@gmail.com>

* fix: genesis timestamp

* granular generation

* mainnet chain-spec

* feat: local db-sync + cnigh-config working

* filter cnight-config

* docs: update

* backup

* remove temporarily SBOM

* temporarily disable sbom in release

* feat: add genesis message placeholder

* fix: asset name encoding

* fix: policy_id decoding

* fix: ics and reserve queries

* fix conflicts

* chain-spec regenerated

* fix: add --no-cache to earthly for genesis

* feat: make verification steps skippable

* fix: enable all verification for mainnet

* feat: add genesis message

* fix: make clippy happy

* fix: genesis message

* feat: add bootnodes config file

* feat: check fees

* add change file + nits

* chore: remove mainnet generated files

* docs: update with bootnodes info

* address comments

* update mainnet cardano-tip

* regenerate mainner config

* fix: perfnet build genesis

---------

Signed-off-by: Giles Cope <gilescope@gmail.com>
Co-authored-by: Squirrel <giles.cope@shielded.io>
Signed-off-by: Giles Cope <gilescope@gmail.com>
@gilescope gilescope mentioned this pull request Mar 11, 2026
@NachoPal NachoPal added this pull request to the merge queue Mar 11, 2026
@NachoPal NachoPal removed this pull request from the merge queue due to a manual request Mar 11, 2026
@NachoPal NachoPal enabled auto-merge March 11, 2026 23:19
@NachoPal NachoPal added this pull request to the merge queue Mar 12, 2026
Merged via the queue into main with commit b35fef7 Mar 12, 2026
34 checks passed
@NachoPal NachoPal deleted the nacho/generate-mainnet-chain-spec branch March 12, 2026 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants