@@ -45,11 +45,14 @@ if [ "$CC_CLIENT" = "lighthouse" ]; then
4545 --datadir /validators/lighthouse \
4646 --init-slashing-protection \
4747 --logfile-max-number 0 \
48- --gas-limit $VC_SUGGESTED_BLOCK_GAS_LIMIT \
4948 --beacon-nodes $CC_URL_STRING \
5049 --suggested-fee-recipient $( cat /validators/$FEE_RECIPIENT_FILE ) \
5150 $VC_ADDITIONAL_FLAGS "
5251
52+ if [ ! -z " $VC_SUGGESTED_BLOCK_GAS_LIMIT " ]; then
53+ CMD=" $CMD --gas-limit $VC_SUGGESTED_BLOCK_GAS_LIMIT "
54+ fi
55+
5356 if [ " $DOPPELGANGER_DETECTION " = " true" ]; then
5457 CMD=" $CMD --enable-doppelganger-protection"
5558 fi
@@ -94,10 +97,13 @@ if [ "$CC_CLIENT" = "lodestar" ]; then
9497 $FALLBACK_CC_STRING \
9598 --keystoresDir /validators/lodestar/validators \
9699 --secretsDir /validators/lodestar/secrets \
97- --defaultGasLimit $VC_SUGGESTED_BLOCK_GAS_LIMIT \
98100 --suggestedFeeRecipient $( cat /validators/$FEE_RECIPIENT_FILE ) \
99101 $VC_ADDITIONAL_FLAGS "
100102
103+ if [ ! -z " $VC_SUGGESTED_BLOCK_GAS_LIMIT " ]; then
104+ CMD=" $CMD --defaultGasLimit $VC_SUGGESTED_BLOCK_GAS_LIMIT "
105+ fi
106+
101107 if [ " $DOPPELGANGER_DETECTION " = " true" ]; then
102108 CMD=" $CMD --doppelgangerProtection"
103109 fi
@@ -181,10 +187,13 @@ if [ "$CC_CLIENT" = "prysm" ]; then
181187 --wallet-dir /validators/prysm-non-hd \
182188 --wallet-password-file /validators/prysm-non-hd/direct/accounts/secret \
183189 --beacon-rpc-provider $CC_URL_STRING \
184- --suggested-gas-limit $VC_SUGGESTED_BLOCK_GAS_LIMIT \
185190 --suggested-fee-recipient $( cat /validators/$FEE_RECIPIENT_FILE ) \
186191 $VC_ADDITIONAL_FLAGS "
187192
193+ if [ ! -z " $VC_SUGGESTED_BLOCK_GAS_LIMIT " ]; then
194+ CMD=" $CMD --suggested-gas-limit=$VC_SUGGESTED_BLOCK_GAS_LIMIT "
195+ fi
196+
188197 if [ " $ENABLE_MEV_BOOST " = " true" ]; then
189198 CMD=" $CMD --enable-builder"
190199 fi
0 commit comments