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
3a531cdb
Commit
3a531cdb
authored
7 years ago
by
Robert Martin-Legene
Browse files
Options
Downloads
Patches
Plain Diff
incorrect sourcing of libbfa
parent
b0f57904
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/start.sh
+6
-12
6 additions, 12 deletions
bin/start.sh
with
6 additions
and
12 deletions
bin/start.sh
+
6
−
12
View file @
3a531cdb
#!/bin/bash trap "exit 1" ERR
if
[
-n
"
$1
"
]
then
dir
=
"
$1
"
else
dir
=
node1
fi
SECONDS
=
$(
date
+%s
)
cd
`
dirname
$0
`
#!/bin/bash
if
[
-z
"
${
BFAHOME
}
"
]
;
then
echo
"
\$
BFAHOME not set. Did you source bfa/bin/env ?"
>
&2
;
exit
1
;
fi
source
${
BFAHOME
}
/bin/libbfa.sh
||
exit
1
function
repeat
{
...
...
@@ -18,6 +13,7 @@ function gen_genesis
local
genesis
=
"
${
BFANETWORKDIR
}
/genesis.json"
test
-e
"
${
genesis
}
"
&&
return
SECONDS
=
$(
date
+%s
)
bfaconfig account
nodes
=
$account
echo
"** If you want extra nodes added, add them to nodes.remote.txt and run
$0
again."
...
...
@@ -60,9 +56,7 @@ function gen_genesis
# Create a genesis.json if one does not already exist
gen_genesis
# Fix on a random port number.
# Do I have IPv6?
bootnodeid
=
6c81b38551fec2f1142b58ed65137cc1b7dfdc7b35bc556ef26604c41e30fcdeb12212b3c19913584f71dc7bf87d76cd67fa523e96996c0f148390fb76fdc5f7
bootnodev6
=
2800:40:1:6::135
bootnodev4
=
200.68.65.135
...
...
@@ -71,7 +65,7 @@ bootnodes="enode://${bootnodeid}@[$bootnodev6]:${bootnodeport},enode://${bootnod
set
-x
# Start the miner.
exec
flock
--nonblock
--exclusive
${
dir
}
/rpcport
\
exec
flock
--nonblock
--exclusive
${
BFANODEDIR
}
/rpcport
\
geth
\
--datadir
${
BFANODEDIR
}
\
--unlock
"
$account
"
\
...
...
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