diff --git a/README.md b/README.md index 200569469887e08c093e53c394d3097e83663d05..1480bb6b9b0679e4d8c3ec34e1b9b85fd1b49e13 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ 5. Start synchronizing. Synchronizing can take a while. (This script is automatically run at system restart.) - as bfa: `start.sh` 7. Monitor the logs with `bfalog.sh`. Press CTRL-C at any time to stop the `tail -f`. -8. Change your node's settings with `syncmode.sh` +8. Change your node's settings with `admin.sh syncmode` - Do this before you have synced too much in the step before, as it might remove all your downloaded chain data and restart synchronizing the chain. 9. Wait for it to finish synchronizing. 10. Run `maymine.sh` to update your configuration (detects if you are allowed to seal/mine or not). You can run this as often as you wish. If you try to mine/seal but is not allowed, your log will show errors (but no harm done). diff --git a/bin/syncmode.sh b/bin/admin.sh similarity index 100% rename from bin/syncmode.sh rename to bin/admin.sh index d9747b8d46118cdf213dc1d8db4f4377f1c71417..5f443e96a3db88b841cdf5e25bf9ed94852dca81 100755 --- a/bin/syncmode.sh +++ b/bin/admin.sh @@ -6,17 +6,6 @@ source ${BFAHOME}/bin/libbfa.sh || exit 1 defaultmode="fast" -echo "Available synchronization modes:" -echo " full : verify all blocks and all transactions since genesis (most secure)" -echo " fast : verify all blocks but not all transactions (faster than full, but less certain)" -echo " light: Makes this node into a light node which downloads almost" -echo " nothing, but relies on fast and full nodes in the network" -echo " to answer it's requests. This is the fastest and uses least" -echo " local resources, but outsources all trust to another node." -echo "Default mode is fast, because for many, it is a healthy compromise" -echo "between speed and paranoia. You can change the setting, according to" -echo "your needs." - function modefilter { case "$mode" in @@ -31,6 +20,17 @@ function modefilter true } +echo "Available synchronization modes:" +echo " full : verify all blocks and all transactions since genesis (most secure)" +echo " fast : verify all blocks but not all transactions (faster than full, but less certain)" +echo " light: Makes this node into a light node which downloads almost" +echo " nothing, but relies on fast and full nodes in the network" +echo " to answer it's requests. This is the fastest and uses least" +echo " local resources, but outsources all trust to another node." +echo "Default mode is fast, because for many, it is a healthy compromise" +echo "between speed and paranoia. You can change the setting, according to" +echo "your needs." + mode=$( cat ${BFANODEDIR}/syncmode 2>/dev/null || true ) mode=${mode:-${defaultmode}} orgmode=$mode