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
0a73f648
Commit
0a73f648
authored
6 years ago
by
Robert Martin-Legene
Browse files
Options
Downloads
Patches
Plain Diff
Indentation
parent
263039f4
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/start.sh
+41
-41
41 additions, 41 deletions
bin/start.sh
with
41 additions
and
41 deletions
bin/start.sh
+
41
−
41
View file @
0a73f648
...
...
@@ -103,47 +103,47 @@ function startmonitor
function
startgeth
{
# Start the node.
which geth
>
/dev/null 2>&1
||
return
(
flock
--nonblock
--exclusive
9
||
(
echo
"A geth is already running."
false
)
||
exit
1
echo
${
BASHPID
}
>
${
BFANODEDIR
}
/start-loop.pid
if
[
-t
1
]
then
echo
Starting geth
echo
Logging everything to
${
BFANODEDIR
}
/log
echo
Consider running:
tail
-n
1000
-F
${
BFANODEDIR
}
/log
fi
while
:
do
echo
echo
'***'
echo
# (re)configure parameters (you never know if they changed)
flexargs
=
"
$(
accountlist
)
$(
getminer
)
$(
getsyncmode
)
--extradata
$(
extradata
)
"
set
-x
geth
\
--datadir
${
BFANODEDIR
}
\
--networkid
${
BFANETWORKID
}
\
--bootnodes
"
${
bootnodes
}
"
\
--rpc
\
--rpcport
$rpcport
\
--rpcapi
"eth,net,web3,admin,clique,miner,personal"
\
--port
$netport
\
--nousb
\
--gcmode
archive
\
--cache
512
\
--verbosity
3
\
${
flexargs
}
&
set
+x
echo
$!
>
${
BFANODEDIR
}
/geth.pid
wait
sleep
60
done
2>&1 |
${
BFAHOME
}
/bin/log.sh
${
BFANODEDIR
}
/log &
)
9>>
${
BFANODEDIR
}
/start-loop.pid
# Start the node.
which geth
>
/dev/null 2>&1
||
return
(
flock
--nonblock
--exclusive
9
||
(
echo
"A geth is already running."
false
)
||
exit
1
echo
${
BASHPID
}
>
${
BFANODEDIR
}
/start-loop.pid
if
[
-t
1
]
then
echo
Starting geth
echo
Logging everything to
${
BFANODEDIR
}
/log
echo
Consider running:
tail
-n
1000
-F
${
BFANODEDIR
}
/log
fi
while
:
do
echo
echo
'***'
echo
# (re)configure parameters (you never know if they changed)
flexargs
=
"
$(
accountlist
)
$(
getminer
)
$(
getsyncmode
)
--extradata
$(
extradata
)
"
set
-x
geth
\
--datadir
${
BFANODEDIR
}
\
--networkid
${
BFANETWORKID
}
\
--bootnodes
"
${
bootnodes
}
"
\
--rpc
\
--rpcport
$rpcport
\
--rpcapi
"eth,net,web3,admin,clique,miner,personal"
\
--port
$netport
\
--nousb
\
--gcmode
archive
\
--cache
512
\
--verbosity
3
\
${
flexargs
}
&
set
+x
echo
$!
>
${
BFANODEDIR
}
/geth.pid
wait
sleep
60
done
2>&1 |
${
BFAHOME
}
/bin/log.sh
${
BFANODEDIR
}
/log &
)
9>>
${
BFANODEDIR
}
/start-loop.pid
}
startgeth
...
...
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