- Add p2p_node_id field to ChainSettings with empty string default
- Add p2p_node_id to .env.example configuration file
- Change --node-id argument from required to optional with default empty string
- Add node_id resolution with fallback chain: args.node_id -> settings.p2p_node_id -> settings.proposer_id
- Add validation to raise ValueError if no node_id can be resolved
- Update systemd service to use ${
23 lines
526 B
Plaintext
23 lines
526 B
Plaintext
# Blockchain Node Configuration
|
|
# For development use: chain_id=ait-devnet (includes faucet)
|
|
# For production-like testing: chain_id=ait-mainnet (no faucet)
|
|
chain_id=ait-devnet
|
|
supported_chains=ait-devnet
|
|
|
|
rpc_bind_host=0.0.0.0
|
|
rpc_bind_port=8006
|
|
|
|
# Network
|
|
p2p_bind_host=0.0.0.0
|
|
p2p_bind_port=8001
|
|
p2p_node_id=aitbc1-node
|
|
|
|
proposer_id=aitbc1-proposer
|
|
|
|
# Gossip backend: use broadcast with Redis for cross-node communication
|
|
gossip_backend=broadcast
|
|
gossip_broadcast_url=redis://localhost:6379
|
|
|
|
# Data
|
|
db_path=./data/chain.db
|