Skip to content

Commit

Permalink
Update to generalize VC Only logic
Browse files Browse the repository at this point in the history
  • Loading branch information
coincashew committed Dec 29, 2024
1 parent af6b074 commit 3c4097d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ethpillar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1262,7 +1262,7 @@ function getBackTitle(){
CSM_TEXT=$(if systemctl is-active --quiet csm_nimbusvalidator; then printf " | CSM VC $CSM_VC"; elif [[ -f /etc/systemd/system/csm_nimbusvalidator.service ]]; then printf " | Offline CSM VC $CSM_VC"; fi)
HOSTNAME=$(hostname)
NETWORK_TEXT=$(if [[ $(systemctl is-active --quiet execution) ]] || [[ $LB != "EL Syncing" ]] || [[ "$LB" == "EL Syncing" && "$latest_block_number" == "0x0" ]]; then printf "$NETWORK on $HOSTNAME | "; else printf "$HOSTNAME | " ; fi)
if [[ $NODE_MODE == "Validator Client Only" ]]; then
if [[ $NODE_MODE =~ "Validator Client Only" ]]; then
BACKTITLE="${NETWORK_TEXT}${EL_TEXT} | ${CL_TEXT}${VC_TEXT} | Public Goods by CoinCashew.eth"
else
BACKTITLE="${NETWORK_TEXT}${EL_TEXT} | $CL_TEXT | $CL-$EL$VC_TEXT | Public Goods by CoinCashew.eth"
Expand Down
2 changes: 1 addition & 1 deletion update_consensus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function promptYesNo(){

function promptViewLogs(){
if whiptail --title "Update complete" --yesno "Would you like to view logs and confirm everything is running properly?" 8 78; then
if [[ ${NODE_MODE} == "Validator Client Only" ]]; then
if [[ ${NODE_MODE} =~ "Validator Client Only" ]]; then
sudo bash -c 'journalctl -fu validator | ccze -A'
else
sudo bash -c 'journalctl -fu consensus | ccze -A'
Expand Down

0 comments on commit 3c4097d

Please sign in to comment.