lssa/bedrock/scripts/run_logos_blockchain_node.sh

21 lines
751 B
Bash
Raw Normal View History

#!/bin/sh
set -e
export CFG_FILE_PATH="/config.yaml" \
CFG_SERVER_ADDR="http://cfgsync:4400" \
CFG_HOST_IP=$(hostname -i) \
CFG_HOST_IDENTIFIER="validator-$(hostname -i)" \
2026-04-09 17:10:40 +02:00
LOG_LEVEL="INFO" \
POL_PROOF_DEV_MODE=true
2026-04-08 23:33:12 +02:00
/usr/bin/logos-blockchain-cfgsync-client
2026-04-13 11:46:29 +02:00
# Use the static deployment-settings.yaml (mounted from host) with consensus
# params pre-configured for single-node integration tests. Only the
# chain_start_time needs to be set dynamically to "now".
sed -i "s/PLACEHOLDER_CHAIN_START_TIME/$(date -u '+%Y-%m-%d %H:%M:%S.000000 +00:00:00')/" \
/etc/logos-blockchain/deployment-settings.yaml
2026-04-08 23:33:12 +02:00
2026-04-13 11:46:29 +02:00
exec /usr/bin/logos-blockchain-node /config.yaml --deployment /etc/logos-blockchain/deployment-settings.yaml