custom genesis path for private network

This commit is contained in:
Nguyen Sy Thanh Son 2019-05-08 11:43:22 +07:00 committed by GitHub
parent beb9da8521
commit f6fef0b09b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,6 +68,11 @@ if [[ ! -z $NETWORK_ID ]]; then
params="$params --networkid $NETWORK_ID"
fi
# custom genesis path
if [[ ! -z $GENESIS_PATH ]]; then
genesisPath="$GENESIS_PATH"
fi
# data dir
if [[ ! -d $DATA_DIR/tomo ]]; then
echo "No blockchain data, creating genesis block."