2023-10-30 14:51:40 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2024-05-30 09:46:02 +00:00
|
|
|
CONSENSUS_CHAIN_START=$(date +%s)
|
|
|
|
CONSENSUS_COIN_SK=$BOOTSTRAP_NODE_KEY
|
|
|
|
CONSENSUS_COIN_NONCE=$BOOTSTRAP_NODE_KEY
|
|
|
|
CONSENSUS_COIN_VALUE=1
|
2023-11-09 10:59:06 +00:00
|
|
|
DA_VOTER=$BOOTSTRAP_NODE_KEY
|
2023-10-30 14:51:40 +00:00
|
|
|
NET_NODE_KEY=$BOOTSTRAP_NODE_KEY
|
|
|
|
OVERLAY_NODES=$(/etc/nomos/scripts/consensus_node_list.sh)
|
|
|
|
|
2024-05-30 09:46:02 +00:00
|
|
|
export CONSENSUS_COIN_SK \
|
|
|
|
CONSENSUS_COIN_NONCE \
|
|
|
|
CONSENSUS_COIN_VALUE \
|
|
|
|
CONSENSUS_CHAIN_START \
|
2023-11-09 10:59:06 +00:00
|
|
|
DA_VOTER \
|
2023-10-30 14:51:40 +00:00
|
|
|
OVERLAY_NODES \
|
|
|
|
NET_NODE_KEY
|
|
|
|
|
|
|
|
echo "I am a container ${HOSTNAME} node ${NET_NODE_KEY}"
|
2024-05-30 09:46:02 +00:00
|
|
|
echo "CONSENSUS_COIN_SK: ${CONSENSUS_COIN_SK}"
|
|
|
|
echo "CONSENSUS_COIN_NONCE: ${CONSENSUS_COIN_NONCE}"
|
|
|
|
echo "CONSENSUS_COIN_VALUE: ${CONSENSUS_COIN_VALUE}"
|
2023-11-09 10:59:06 +00:00
|
|
|
echo "DA_VOTER: ${DA_VOTER}"
|
2023-10-30 14:51:40 +00:00
|
|
|
echo "OVERLAY_NODES: ${OVERLAY_NODES}"
|
|
|
|
|
2024-06-14 11:22:16 +00:00
|
|
|
exec /usr/bin/nomos-node /etc/nomos/bootstrap_config.yaml --with-metrics --log-backend gelf --log-addr graylog:12201
|