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

Syncmode can now be specified in a file, and now defaults to fast

parent b0656360
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@ function accountlist
# you can use attach.sh and issue the command:
# miner.start()
function miner
function getminer
{
if [ -e "${BFANODEDIR}/miner" ]
then
......@@ -39,6 +39,12 @@ function miner
fi
}
function getsyncmode
{
local syncmode=$( cat "${BFANODEDIR}/syncmode" 2>/dev/null )
syncmode=${syncmode:-fast}
echo -- "--syncmode ${syncmode}"
}
# Start the miner.
......@@ -54,7 +60,7 @@ function miner
echo
echo '***'
echo
flexargs="$( accountlist) $( miner )"
flexargs="$( accountlist) $( getminer ) $( getsyncmode )"
set -x
geth \
--datadir ${BFANODEDIR} \
......@@ -65,7 +71,6 @@ function miner
--rpcport $rpcport \
--rpcapi "eth,net,web3,admin,clique,miner" \
--port $netport \
--syncmode full \
--nousb \
--txpool.nolocals \
--txpool.accountslots 128 \
......
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