Skip to content
This repository has been archived by the owner on Jun 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #63 from dappnode/add-graffiti-limit
Browse files Browse the repository at this point in the history
Add Graffiti Char limit
  • Loading branch information
pablomendezroyo authored Mar 9, 2023
2 parents d693bca + 899a637 commit cdb5b97
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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}" \
Expand Down

0 comments on commit cdb5b97

Please sign in to comment.