Merge pull request #508 from tomochain/thanhson1085-genesis-path

custom genesis path for private network
This commit is contained in:
Etienne Napoleone 2019-05-08 11:59:34 +07:00 committed by GitHub
commit 6f6ac2546e
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."