GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - voluzi/cosmoseed: A lightweight seed node for Cosmos-based blockchains.

BranchesTags
Open more actions menu

Latest commit

 

History

45 Commits
45 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
cmd/cosmoseed
cmd/cosmoseed
 
 
docs
docs
 
 
helm/cosmoseed
helm/cosmoseed
 
 
internal/utils
internal/utils
 
 
pkg
pkg
 
 
.dockerignore
.dockerignore
 
 
.gitignore
.gitignore
 
 
.golangci.yml
.golangci.yml
 
 
.goreleaser.yml
.goreleaser.yml
 
 
Dockerfile
Dockerfile
 
 
LICENSE.md
LICENSE.md
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
config.example.yaml
config.example.yaml
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 

Repository files navigation

Cosmoseed

Test GoReleaser Docker Builds License: MIT

Cosmoseed is a Cosmos seed node that serves peers only after an authenticated outbound P2P connection. The address book remains a pool of candidates; an old "good" mark or an inbound connection does not make a peer eligible for HTTP or PEX responses. Verification expires after verificationTTL, including when rechecks are delayed. A restart begins with no verified peers.

Install and run

Download a binary from releases, or build locally with make build. The container image is ghcr.io/voluzi/cosmoseed. Pushes to main publish the multi-architecture :edge image. Stable version tags publish their semver tag and :latest; prerelease tags publish only their semver tag. Production deployments should pin a version tag or digest.

Copy config.example.yaml to ~/.cosmoseed/config.yaml, set chainID, and optionally add known seeds. Then run cosmoseed. Config resolution is defaults → YAML → explicitly present environment variables → explicitly supplied flags. Only CHAIN_ID, SEEDS, LOG_LEVEL, EXTERNAL_ADDRESS, POD_NAME, and HOME_DIR have environment overrides. Unknown YAML fields are rejected. The effective config is saved atomically with mode 0600, unless --config-read-only is set.

--show-node-id loads or creates only the node key and prints its ID. It works without chainID, does not bind listeners, and does not rewrite config.yaml.

For a one-off invocation:

cosmoseed --chain-id my-chain --seeds '[email protected]:26656'

--external-address accepts a host and port, including [2001:db8::1]:26656 for IPv6. With --pod-name or POD_NAME, a comma-separated external address list must contain the address at that pod's zero-based ordinal; a single address is also accepted for any ordinal. Invalid or missing list entries fail startup. Pod names also select a distinct node key file. An explicit --home wins over HOME_DIR.

Endpoints

The API listens on apiAddr (default 0.0.0.0:8080):

Path Response
/ This seed's nodeID@host:port
/peers Comma-separated verified peer addresses, for existing clients
/peers?limit=20&format=json JSON array of address, ID, IP, port, verified, last verification time, and age in seconds
/peers?format=toml Paste-ready persistent_peers = "..."
/healthz Process liveness
/readyz Running and at least minReadyPeers fresh verified peers (default 1)
/status Version, chain ID, readiness, verified and candidate counts

limit is 1–100. verified=false is rejected; the API cannot serve unverified candidates. The default JSON empty result is []. /status and metrics report the full fresh verified count even when peer responses are capped at 100. Metrics are exposed only on metricsAddr (default 127.0.0.1:9090) at /metrics; set it to empty to disable the listener. Each seed instance has its own registry. The chart intentionally binds metrics to 0.0.0.0:9090 for its metrics Service.

Kubernetes

The Helm chart uses a persistent StatefulSet, one PVC per replica, a headless P2P service, separate API and metrics services, health probes, and restrictive pod security settings. Set config.chainID and choose a reachable address per replica in config.externalAddresses when publishing seeds outside the cluster. With those addresses configured, the chart creates one P2P Service per pod; each Service selects only that pod, avoiding a load-balanced node-ID endpoint. Each P2P Service exposes the port in its corresponding external address (for example, seed.example:443 exposes 443) and forwards to the pod's internal ports.p2p; make the external address reachable on that public port. The metrics Service publishes pod addresses before readiness so scrapes can show startup state; the API Service waits for readiness. Chart and app versions are independent: a chart-only change increments version, while appVersion names the default image tag. ServiceMonitor is optional and selects only the metrics Service.

If supplying existingConfigMap, also set existingConfigMapChecksum to a value that changes whenever that ConfigMap's contents change; the chart uses it to trigger a rollout.

helm template seed helm/cosmoseed --set config.chainID=my-chain

See v0.12 migration notes before upgrading an existing seed.

Inspired by tenderseed and the Cosmos ecosystem.

About

A lightweight seed node for Cosmos-based blockchains.

Resources

Readme
License
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.