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 ...@@ -193,11 +193,11 @@ function bfainit
exit 1 exit 1
esac esac
# Init the blockchain with the genesis block # Init the blockchain with the genesis block
if [ -d "${BFANODEDIR}/geth/chaindata" ] if [ ! -d "${BFANODEDIR}/geth/chaindata" ]
then then
mkdir -p "${BFANODEDIR}" mkdir -p "${BFANODEDIR}"
echo "Node is not initialised. Initialising with genesis." 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 fi
} }
......
...@@ -89,7 +89,7 @@ exec > ${LOGPIPE} 2>&1 ...@@ -89,7 +89,7 @@ exec > ${LOGPIPE} 2>&1
echo "*** Starting geth." echo "*** Starting geth."
# "NoPruning=true" means "--gcmode archive" # "NoPruning=true" means "--gcmode archive"
geth --networkid ${BFANETWORKID} --config ${BFATOML} & geth --config ${BFATOML} &
PIDIDX[$!]="geth" PIDIDX[$!]="geth"
# bootnode # 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