Skip to content

feat: set-genesis-peers task and assembler peers.json upload#43

Merged
bdchatham merged 1 commit intomainfrom
feat/set-genesis-peers
Mar 27, 2026
Merged

feat: set-genesis-peers task and assembler peers.json upload#43
bdchatham merged 1 commit intomainfrom
feat/set-genesis-peers

Conversation

@bdchatham
Copy link
Contributor

@bdchatham bdchatham commented Mar 27, 2026

Summary

  • Assembler now downloads each node's identity.json from S3 after assembling genesis, builds full Tendermint peer addresses using in-cluster DNS, and uploads peers.json alongside genesis.json
  • New set-genesis-peers sidecar task downloads peers.json, filters out the current node using its local node_key.json, and writes persistent_peers to config.toml
  • Adds namespace as a required parameter to the assembler for constructing DNS addresses

Context

Genesis ceremony nodes were failing at the discover-peers step because there are no external peer sources (EC2 tags, static) configured — all nodes start simultaneously in the same cluster. This produces the peer list as a ceremony artifact instead, matching the pattern from the legacy SeiNodePool approach.

Companion controller PR needed to wire namespace into assembler params and replace discover-peers with set-genesis-peers in the genesis plan.

Test plan

  • Existing assembler tests updated and passing
  • Verify peers.json upload in integration test
  • Verify set-genesis-peers self-filtering with mock S3 + node_key.json

The genesis assembler now downloads each node identity from S3 after
assembling genesis.json and builds a peers.json containing full
Tendermint peer addresses using in-cluster DNS. A new set-genesis-peers
sidecar task downloads this file, filters out the current node using
its local node_key.json, and writes persistent_peers to config.toml.

This replaces the discover-peers step in the genesis ceremony plan,
which was failing because genesis ceremony nodes have no external
peer sources configured.
@bdchatham bdchatham marked this pull request as ready for review March 27, 2026 01:02
@bdchatham bdchatham merged commit db8e10f into main Mar 27, 2026
2 checks passed
@bdchatham bdchatham deleted the feat/set-genesis-peers branch March 27, 2026 01:02
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.

1 participant