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
c16bdfd6
Commit
c16bdfd6
authored
6 years ago
by
Robert Martin-Legene
Browse files
Options
Downloads
Patches
Plain Diff
Cleaning up start.sh
parent
55ba63d3
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
+31
-39
31 additions, 39 deletions
bin/start.sh
with
31 additions
and
39 deletions
bin/start.sh
+
31
−
39
View file @
c16bdfd6
...
...
@@ -11,41 +11,6 @@ bootnodes="enode://${bootnodeid}@[$bootnodev6]:${bootnodeport},enode://${bootnod
bfaconfig max
function
startgeth
{
while
:
do
echo
echo
'***'
echo
set
-x
geth
\
--datadir
${
BFANODEDIR
}
\
$(
accountlist
)
\
$(
miner
)
\
--networkid
$BFANETWORKID
\
--bootnodes
"
${
bootnodes
}
"
\
--rpc
\
--rpcport
$rpcport
\
--rpcapi
"eth,net,web3,admin,clique,miner"
\
--port
$netport
\
--syncmode
full
\
--nousb
\
--txpool
.nolocals
\
--txpool
.accountslots 128
\
--txpool
.globalslots 32768
\
--txpool
.accountqueue 512
\
--txpool
.globalqueue 8192
\
--extradata
"
${
BFAEXTRADATA
}
"
\
--cache
512
\
--verbosity
3 &
set
+x
echo
$!
>
${
BFANODEDIR
}
/geth.pid
wait
sleep
60
done
}
function
accountlist
{
local
accts
=
...
...
@@ -77,15 +42,42 @@ function miner
# Start the miner.
test
-e
"
${
BFANODEDIR
}
/geth.pid"
||
touch
${
BFANODEDIR
}
/geth.pid
(
flock
--nonblock
--exclusive
9
||
exit
1
startgeth 2>&1 |
${
BFAHOME
}
/bin/log.sh
${
BFANODEDIR
}
/log &
if
[
-t
1
]
then
echo
Logging everything to
${
BFANODEDIR
}
/log
echo
Consider running:
tail
-n
1000
-F
${
BFANODEDIR
}
/log
fi
while
:
do
echo
echo
'***'
echo
set
-x
geth
\
--datadir
${
BFANODEDIR
}
\
$(
accountlist
)
\
$(
miner
)
\
--networkid
$BFANETWORKID
\
--bootnodes
"
${
bootnodes
}
"
\
--rpc
\
--rpcport
$rpcport
\
--rpcapi
"eth,net,web3,admin,clique,miner"
\
--port
$netport
\
--syncmode
full
\
--nousb
\
--txpool
.nolocals
\
--txpool
.accountslots 128
\
--txpool
.globalslots 32768
\
--txpool
.accountqueue 512
\
--txpool
.globalqueue 8192
\
--extradata
"
${
BFAEXTRADATA
}
"
\
--cache
512
\
--verbosity
3 &
set
+x
echo
$!
>
${
BFANODEDIR
}
/geth.pid
wait
sleep
60
done
2>&1 |
${
BFAHOME
}
/bin/log.sh
${
BFANODEDIR
}
/log &
)
9>>
${
$BFANODEDIR
}
/geth.pid
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