fix genesis block hash by current config
@@ -130,10 +130,10 @@ function start() {
echo "=========== check genesis hash ========== "
${CLI} block hash -t 0
res=$(${CLI} block hash -t 0 | jq -r ".hash")
- #count=$(echo "$res" | grep -c "0x67c58d6ba9175313f0468ae4e0ddec946549af7748037c2fdd5d54298afd20b6")
- if [ "${res}" != "0x67c58d6ba9175313f0468ae4e0ddec946549af7748037c2fdd5d54298afd20b6" ]; then
+ #in case changes result in genesis change
+ if [ "${res}" != "0xa87972dfc3510cb934cb987bcb88036f7a1ffd7dc069cb9a5f0af179895fd2e8" ]; then
echo "genesis hash error!"
- # exit 1
+ exit 1
fi
echo "=========== query height ========== "
