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

Initializa el genesis tambien

parent e7ff2dea
No related branches found
No related tags found
No related merge requests found
......@@ -136,6 +136,21 @@ function gethinstall
install --verbose --owner=bfa --group=bfa --target-directory=${HISBINDIR} ${NEW}/go-ethereum/build/bin/{geth,bootnode,abigen,ethkey,puppeth,rlpdump,wnode,swarm,swarm-smoke}
}
function initgenesis
{
(
test -z "${BFAHOME}"
source ${BFAHOME}/bin/env
BFANETWORKDIR=${BFANETWORKDIR:-${BFAHOME}/network}
BFANODEDIR=${BFANODEDIR:-${BFANETWORKDIR}/node}
if [ ! -d "${BFANODEDIR}" -o ! -d "${BFANODEDIR}/geth/chaindata" ]
then
info "Node is not initialised. Initialising with genesis."
geth --cache 0 --datadir "${BFANODEDIR}" init "${BFANETWORKDIR}/genesis.json"
fi
)
}
function aptinstall
{
for pkg in $*
......@@ -244,5 +259,6 @@ userconfig
nodejsinstall
golanginstall
gethinstall
initgenesis
cronit
welcome
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