Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nucleo
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blockchain
nucleo
Commits
69d6184d
Commit
69d6184d
authored
5 years ago
by
Robert Martin-Legene
Browse files
Options
Downloads
Patches
Plain Diff
Initializa el genesis tambien
parent
e7ff2dea
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/installbfa.sh
+16
-0
16 additions, 0 deletions
bin/installbfa.sh
with
16 additions
and
0 deletions
bin/installbfa.sh
+
16
−
0
View file @
69d6184d
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment