From 899a637173a25508c5939bbf32af979d07855696 Mon Sep 17 00:00:00 2001 From: Voss Date: Thu, 9 Mar 2023 01:02:14 -0600 Subject: [PATCH] Add Graffiti Char limit --- build/entrypoint.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build/entrypoint.sh b/build/entrypoint.sh index 30776f2..f951741 100755 --- a/build/entrypoint.sh +++ b/build/entrypoint.sh @@ -40,6 +40,12 @@ if [ -n "$_DAPPNODE_GLOBAL_MEVBOOST_PRATER" ] && [ "$_DAPPNODE_GLOBAL_MEVBOOST_P fi fi +#Handle Graffiti Character Limit +oLang=$LANG oLcAll=$LC_ALL +LANG=C LC_ALL=C +graffitiString=${GRAFFITI:0:32} +LANG=$oLang LC_ALL=$oLcAll + # Run checkpoint sync script if provided [[ -n $CHECKPOINT_SYNC_URL ]] && /home/user/nimbus-eth2/build/nimbus_beacon_node trustedNodeSync \ @@ -66,7 +72,7 @@ exec -c /home/user/nimbus_beacon_node \ --keymanager-port=${VALIDATOR_PORT} \ --keymanager-address=0.0.0.0 \ --keymanager-token-file=${TOKEN_FILE} \ - --graffiti="$GRAFFITI" \ + --graffiti="${graffitiString}" \ --jwt-secret=/jwtsecret \ --web3-url=$HTTP_ENGINE \ --suggested-fee-recipient="${FEE_RECIPIENT_ADDRESS}" \