Fix python script invocation
This commit is contained in:
parent
0e8153cb3a
commit
be5258c732
@ -23,6 +23,7 @@ cp $TESTNET_STATE_FILE $MAINNET_GENESIS_DIR/testnet-state.json
|
|||||||
|
|
||||||
# --------
|
# --------
|
||||||
|
|
||||||
|
echo "Initializing a new empty chain with chain-id $CHAIN_ID..."
|
||||||
docker run -it \
|
docker run -it \
|
||||||
-v ./$MAINNET_GENESIS_DIR:/root/.laconicd \
|
-v ./$MAINNET_GENESIS_DIR:/root/.laconicd \
|
||||||
-v ./scripts:/scripts \
|
-v ./scripts:/scripts \
|
||||||
@ -32,12 +33,15 @@ docker run -it \
|
|||||||
# --------
|
# --------
|
||||||
|
|
||||||
# Carry over state from testnet to mainnet
|
# Carry over state from testnet to mainnet
|
||||||
python transfer-state.py
|
echo "Carrying over state from testnet state to mainnet genesis..."
|
||||||
|
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
|
python $script_dir/transfer-state.py
|
||||||
|
|
||||||
# --------
|
# --------
|
||||||
|
|
||||||
# Run a script with cerc/laconicd:local to generate the genesis file
|
# Run a script with cerc/laconicd:local to generate the genesis file
|
||||||
# with onboarding module state and given allocations
|
# with onboarding module state and given allocations
|
||||||
|
echo "Performing alps allocations..."
|
||||||
docker run -it \
|
docker run -it \
|
||||||
-v ./$MAINNET_GENESIS_DIR:/root/.laconicd \
|
-v ./$MAINNET_GENESIS_DIR:/root/.laconicd \
|
||||||
-v ./scripts:/scripts \
|
-v ./scripts:/scripts \
|
||||||
@ -50,6 +54,7 @@ OUTPUT_DIR=output
|
|||||||
mkdir -p $OUTPUT_DIR
|
mkdir -p $OUTPUT_DIR
|
||||||
cp ./$MAINNET_GENESIS_DIR/config/genesis.json $OUTPUT_DIR/genesis.json
|
cp ./$MAINNET_GENESIS_DIR/config/genesis.json $OUTPUT_DIR/genesis.json
|
||||||
|
|
||||||
|
# TODO: chown the output dir to user
|
||||||
echo "Genesis file for mainnet written to $OUTPUT_DIR/genesis.json"
|
echo "Genesis file for mainnet written to $OUTPUT_DIR/genesis.json"
|
||||||
|
|
||||||
# --------
|
# --------
|
||||||
|
@ -6,8 +6,6 @@ set -u
|
|||||||
|
|
||||||
# Note: Needs to be run in a docker container with image cerc/laconicd:local
|
# Note: Needs to be run in a docker container with image cerc/laconicd:local
|
||||||
|
|
||||||
CHAINID=${CHAINID:-"laconic-mainnet"}
|
|
||||||
MONIKER=${MONIKER:-"mainnet-node"}
|
|
||||||
KEYRING="test"
|
KEYRING="test"
|
||||||
NODE_HOME="/root/.laconicd"
|
NODE_HOME="/root/.laconicd"
|
||||||
|
|
||||||
|
@ -6,8 +6,8 @@ set -u
|
|||||||
|
|
||||||
# Note: Needs to be run in a docker container with image cerc/laconicd:local
|
# Note: Needs to be run in a docker container with image cerc/laconicd:local
|
||||||
|
|
||||||
CHAINID=${CHAINID:-"laconic-mainnet"}
|
CHAIN_ID=${CHAIN_ID:-"laconic-mainnet"}
|
||||||
MONIKER=${MONIKER:-"mainnet-node"}
|
MONIKER=${MONIKER:-"mainnet-node"}
|
||||||
|
|
||||||
laconicd config set client chain-id $CHAINID
|
laconicd config set client chain-id $CHAIN_ID
|
||||||
laconicd init $MONIKER --chain-id $CHAINID --default-denom alnt
|
laconicd init $MONIKER --chain-id $CHAIN_ID --default-denom alnt
|
||||||
|
@ -2,7 +2,7 @@ version: "1.0"
|
|||||||
name: mainnet-laconicd
|
name: mainnet-laconicd
|
||||||
description: "Laconicd full node"
|
description: "Laconicd full node"
|
||||||
repos:
|
repos:
|
||||||
- git.vdb.to/cerc-io/laconicd@mainnet
|
- git.vdb.to/cerc-io/laconicd@mainnet # TODO: Use a release
|
||||||
containers:
|
containers:
|
||||||
- cerc/laconicd
|
- cerc/laconicd
|
||||||
pods:
|
pods:
|
||||||
|
Loading…
Reference in New Issue
Block a user