Files
b6580bfa54 fix(boot): real staking validators, localnet id 1337 (no --automine) (#24)
Every network now boots as a real staking validator using keys under
<data>/staking (operator-mounted secret; luxd generates locally if absent).
Drops the --automine shortcut entirely — the production and local paths are
identical. localnet primary-network id is 1337 (C-Chain 31337), not the
string "local".

- LUXD_NETWORK_ID override so zoo/hanzo universes reuse this script verbatim
  (same network names, only the id/genesis/S3 path differ).
- Optional --staking-tls-cert/key/signer wiring for mounted secrets.
- LUXD_DEV=true is the local single-node escape hatch (sybil-off +
  skip-bootstrap) — never the default.

Proven locally on luxd/1.30.6 + database v1.20.3: boots id=1337 with
auto-generated ECDSA+ML-KEM+ML-DSA staking keys, restore-on-boot hydrates the
physical snapshot, ships PQ-encrypted CDC incrementals.

Co-authored-by: Hanzo Dev <[email protected]>
2026-06-15 22:35:48 -07:00

20 lines
819 B
Bash

# Coherent boot — localnet (local dev). Run a local hanzo-s3 (MinIO) on :9000, then:
# set -a; . local.env; set +a; ./luxd-boot.sh
# Real networks run as staking validators; LUXD_DEV=true is the local single-node
# escape hatch (sybil-off + skip-bootstrap) so one node boots without a peer set.
# NO --automine. localnet primary-network id = 1337, C-Chain id = 31337.
LUX_NETWORK=local
LUXD_DEV=true
LUXD_BIN=/tmp/luxd-v1203
LUXD_DATA_DIR=/tmp/luxd-local-home
LUXD_HTTP_HOST=127.0.0.1
LUXD_HTTP_PORT=9630
LUXD_STAKING_PORT=9631
REPLICATE_S3_ENDPOINT=http://localhost:9000
REPLICATE_S3_BUCKET=lux-snapshots
REPLICATE_S3_ACCESS_KEY=luxadmin
REPLICATE_S3_SECRET_KEY=luxsecret123
REPLICATE_S3_REGION=us-east-1
REPLICATE_S3_USE_SSL=false
REPLICATE_AGE_KEY_FILE=/tmp/luxd-local-home/pq.key # out-of-box PQ (ML-KEM-768)