Add p2p_node_id configuration setting and make node-id argument optional with fallback chain
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 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 ${
This commit is contained in:
aitbc
2026-04-14 13:12:00 +02:00
parent f9fb3ea053
commit ffd05769df
4 changed files with 10 additions and 4 deletions

View File

@@ -10,6 +10,7 @@ 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