From 2d6fa601a018a0fc0b448476f311c35177aba9e9 Mon Sep 17 00:00:00 2001 From: Robert Martin-Legene <robert@nic.ar> Date: Mon, 30 Sep 2019 19:48:25 -0300 Subject: [PATCH] Solucionado la creacion del bloque genesis? --- bin/libbfa.sh | 4 ++-- bin/singlestart.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/libbfa.sh b/bin/libbfa.sh index 7a4ba80..9b363b6 100644 --- a/bin/libbfa.sh +++ b/bin/libbfa.sh @@ -193,11 +193,11 @@ function bfainit exit 1 esac # Init the blockchain with the genesis block - if [ -d "${BFANODEDIR}/geth/chaindata" ] + if [ ! -d "${BFANODEDIR}/geth/chaindata" ] then mkdir -p "${BFANODEDIR}" echo "Node is not initialised. Initialising with genesis." - geth --config "${BFANETWORKDIR}/config.toml" --networkid ${BFANETWORKID} --cache 0 init "${BFANETWORKDIR}/genesis.json" + geth --config "${BFANETWORKDIR}/config.toml" --cache 0 init "${BFANETWORKDIR}/genesis.json" fi } diff --git a/bin/singlestart.sh b/bin/singlestart.sh index 0a36157..d8fb623 100755 --- a/bin/singlestart.sh +++ b/bin/singlestart.sh @@ -89,7 +89,7 @@ exec > ${LOGPIPE} 2>&1 echo "*** Starting geth." # "NoPruning=true" means "--gcmode archive" -geth --networkid ${BFANETWORKID} --config ${BFATOML} & +geth --config ${BFATOML} & PIDIDX[$!]="geth" # bootnode -- GitLab