Files
aitbc/apps/blockchain-node/.env.example
aitbc ffd05769df
Some checks failed
Security Scanning / security-scan (push) Has been cancelled
Integration Tests / test-service-integration (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Systemd Sync / sync-systemd (push) Has been cancelled
Add p2p_node_id configuration setting and make node-id argument optional with fallback chain
- 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 ${
2026-04-14 13:12:00 +02:00

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