Skip to content
Snippets Groups Projects
Commit 2d6fa601 authored by Robert Martin-Legene's avatar Robert Martin-Legene
Browse files

Solucionado la creacion del bloque genesis?

parent 21e1526a
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment