Skip to content

Commit

Permalink
Don't replace default values if that is what user wants (by editing c…
Browse files Browse the repository at this point in the history
…onfig back to Chia defaults). #681
  • Loading branch information
guydavis committed Jun 14, 2022
1 parent 35be83e commit 6392c20
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions scripts/forktools_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,13 @@ if [[ -z "${forktools_skip_build}" ]]; then

# Now multiproc patch fullnodes to limit memory usage, but delay to offset resource crunch on launch
if [[ ${mode} == 'fullnode' ]]; then
sed -i "s/SETMAXLOGROTATION='99'/SETMAXLOGROTATION='7'/g" /root/.chia/forktools/ftconfigs/config.forkfixconfig*
sed -i "s/SETPLOTLOADFREQUENCY='18000'/SETPLOTLOADFREQUENCY='1800'/g" /root/.chia/forktools/ftconfigs/config.forkfixconfig*
sed -i "s/SETFNTARGETPEERCOUNT='80'/SETFNTARGETPEERCOUNT='20'/g" /root/.chia/forktools/ftconfigs/config.forkfixconfig*
sed -i "s/\"/'/g" /root/.chia/forktools/ftconfigs/config.forkfixconfig
if [ ! -f /root/.chia/forktools/ftconfigs/.configured ]; then
sed -i "s/SETMAXLOGROTATION='99'/SETMAXLOGROTATION='7'/g" /root/.chia/forktools/ftconfigs/config.forkfixconfig*
sed -i "s/SETPLOTLOADFREQUENCY='18000'/SETPLOTLOADFREQUENCY='1800'/g" /root/.chia/forktools/ftconfigs/config.forkfixconfig*
sed -i "s/SETFNTARGETPEERCOUNT='80'/SETFNTARGETPEERCOUNT='20'/g" /root/.chia/forktools/ftconfigs/config.forkfixconfig*
sed -i "s/\"/'/g" /root/.chia/forktools/ftconfigs/config.forkfixconfig
touch /root/.chia/forktools/ftconfigs/.configured
fi
echo 'Y' | ./forkfixconfig all
sleep $[ ( $RANDOM % 300 ) + 1 ]s
./forkpatch all -multiproc
Expand Down

0 comments on commit 6392c20

Please sign in to comment.