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