networkid should be grep from istanbul-genesis.json instead of genesis.json (#120)

This commit is contained in:
Nam Truong
2018-08-24 14:37:27 +01:00
committed by fixanoid
parent 98ef9f0f6d
commit aefdd2103a

View File

@@ -42,12 +42,12 @@ while (( "$#" )); do
esac
done
NETWORK_ID=$(cat genesis.json | grep chainId | awk -F " " '{print $2}' | awk -F "," '{print $1}')
NETWORK_ID=$(cat istanbul-genesis.json | grep chainId | awk -F " " '{print $2}' | awk -F "," '{print $1}')
if [ $NETWORK_ID -eq 1 ]
then
echo " Quorum should not be run with a chainId of 1 (Ethereum mainnet)"
echo " please set the chainId in the genensis.json to another value "
echo " please set the chainId in the istanbul-genesis.json to another value "
echo " 1337 is the recommend ChainId for Geth private clients."
fi