Update env and config files for testnet (#520)
This commit is contained in:
parent
3e1a722bd2
commit
5c7e0f511f
|
@ -0,0 +1,9 @@
|
|||
# Environment variables for compose.yml file config.
|
||||
DOCKER_COMPOSE_LIBP2P_REPLICAS=3
|
||||
DOCKER_COMPOSE_LIBP2P_NODE_KEY_MASK=2000000000000000000000000000000000000000000000000000000000000000
|
||||
DOCKER_COMPOSE_SUPER_MAJORITY_THRESHOLD=1
|
||||
DOCKER_COMPOSE_ETCDCTL_ENDPOINTS=etcd:2379
|
||||
DOCKER_COMPOSE_ETCDCTL_API=3
|
||||
DOCKER_COMPOSE_BOOSTRAP_NET_NODE_KEY=1000000000000000000000000000000000000000000000000000000000000000
|
||||
DOCKER_COMPOSE_OVERLAY_NODES=$DOCKER_COMPOSE_BOOSTRAP_NET_NODE_KEY
|
||||
DOCKER_COMPOSE_NET_INITIAL_PEERS=/dns/bootstrap/tcp/3000
|
|
@ -64,7 +64,7 @@ network:
|
|||
end: "0ms"
|
||||
|
||||
http:
|
||||
backend:
|
||||
backend_settings:
|
||||
address: 0.0.0.0:8080
|
||||
cors_origins: []
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@ network:
|
|||
end: "0ms"
|
||||
|
||||
http:
|
||||
backend:
|
||||
backend_settings:
|
||||
address: 0.0.0.0:8080
|
||||
cors_origins: []
|
||||
|
||||
|
|
|
@ -3,18 +3,18 @@
|
|||
set -e
|
||||
|
||||
CONSENSUS_PRIV_KEY=$BOOTSTRAP_NODE_KEY
|
||||
DA_VOTER_KEY=$BOOTSTRAP_NODE_KEY
|
||||
DA_VOTER=$BOOTSTRAP_NODE_KEY
|
||||
NET_NODE_KEY=$BOOTSTRAP_NODE_KEY
|
||||
OVERLAY_NODES=$(/etc/nomos/scripts/consensus_node_list.sh)
|
||||
|
||||
export CONSENSUS_PRIV_KEY \
|
||||
DA_VOTER_KEY \
|
||||
DA_VOTER \
|
||||
OVERLAY_NODES \
|
||||
NET_NODE_KEY
|
||||
|
||||
echo "I am a container ${HOSTNAME} node ${NET_NODE_KEY}"
|
||||
echo "CONSENSUS_PRIV_KEY: ${CONSENSUS_PRIV_KEY}"
|
||||
echo "DA_VOTER_KEY: ${DA_VOTER_KEY}"
|
||||
echo "DA_VOTER: ${DA_VOTER}"
|
||||
echo "OVERLAY_NODES: ${OVERLAY_NODES}"
|
||||
|
||||
exec /usr/bin/nomos-node /etc/nomos/bootstrap_config.yaml
|
||||
|
|
|
@ -5,7 +5,7 @@ set -e
|
|||
# Set env variables for nomos-node.
|
||||
NET_NODE_KEY=$(/etc/nomos/scripts/register_node.sh)
|
||||
CONSENSUS_PRIV_KEY=$NET_NODE_KEY
|
||||
DA_VOTER_KEY=$CONSENSUS_PRIV_KEY
|
||||
DA_VOTER=$CONSENSUS_PRIV_KEY
|
||||
OVERLAY_NODES=$(/etc/nomos/scripts/consensus_node_list.sh)
|
||||
|
||||
node_ids=$(etcdctl get "/node/" --prefix --keys-only)
|
||||
|
@ -22,14 +22,14 @@ for node_id in $node_ids; do
|
|||
done
|
||||
|
||||
export CONSENSUS_PRIV_KEY \
|
||||
DA_VOTER_KEY \
|
||||
DA_VOTER \
|
||||
OVERLAY_NODES \
|
||||
NET_NODE_KEY \
|
||||
NET_INITIAL_PEERS
|
||||
|
||||
echo "I am a container ${HOSTNAME} node ${NET_NODE_KEY}"
|
||||
echo "CONSENSUS_PRIV_KEY: ${CONSENSUS_PRIV_KEY}"
|
||||
echo "DA_VOTER_KEY: ${DA_VOTER_KEY}"
|
||||
echo "DA_VOTER: ${DA_VOTER}"
|
||||
echo "OVERLAY_NODES: ${OVERLAY_NODES}"
|
||||
echo "NET_INITIAL_PEERS: ${NET_INITIAL_PEERS}"
|
||||
|
||||
|
|
Loading…
Reference in New Issue