diff --git a/scripts/alphanet.sh b/scripts/alphanet.sh index 5cacf6288..a516cee3d 100755 --- a/scripts/alphanet.sh +++ b/scripts/alphanet.sh @@ -398,11 +398,11 @@ log_endorser() { } stop_endorser() { - if ! check_baker; then - echo -e "\033[31mNo baker to kill!\033[0m" + if ! check_endorser; then + echo -e "\033[31mNo endorser to kill!\033[0m" exit 1 fi - echo -e "\033[32mStopping the baker...\033[0m" + echo -e "\033[32mStopping the endorser...\033[0m" call_docker_compose stop $endorsers } @@ -463,11 +463,11 @@ log_accuser() { } stop_accuser() { - if ! check_baker; then - echo -e "\033[31mNo baker to kill!\033[0m" + if ! check_accuser; then + echo -e "\033[31mNo accuser to kill!\033[0m" exit 1 fi - echo -e "\033[32mStopping the baker...\033[0m" + echo -e "\033[32mStopping the accuser...\033[0m" call_docker_compose stop $accusers }