mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Merge pull request #508 from tomochain/thanhson1085-genesis-path
custom genesis path for private network
This commit is contained in:
commit
6f6ac2546e
1 changed files with 5 additions and 0 deletions
|
|
@ -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."
|
||||
|
|
|
|||
Loading…
Reference in a new issue