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

Making a simpler admin interface

parent 817c9e67
No related branches found
No related tags found
No related merge requests found
......@@ -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).
......
......@@ -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
......
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