Skip to content

Commit

Permalink
Merge pull request #140 from rocket-pool/block-gas-limit-param
Browse files Browse the repository at this point in the history
Add block gas limit parameter
  • Loading branch information
0xfornax authored Dec 6, 2024
2 parents 3266bd4 + 537c333 commit 31b3bcb
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion install/scripts/start-bn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ if [ "$CC_CLIENT" = "lighthouse" ]; then
--eth1-blocks-per-log-query 150 \
--disable-upnp \
--staking \
--http-allow-sync-stalled \
--execution-jwt=/secrets/jwtsecret \
--quic-port ${BN_P2P_QUIC_PORT:-8001} \
--historic-state-cache-size 2 \
Expand Down Expand Up @@ -173,6 +172,7 @@ if [ "$CC_CLIENT" = "nimbus" ]; then
--data-dir=/ethclient/nimbus \
--tcp-port=$BN_P2P_PORT \
--udp-port=$BN_P2P_PORT \
--suggested-gas-limit=$BN_SUGGESTED_BLOCK_GAS_LIMIT \
--web3-url=$EC_ENGINE_ENDPOINT \
--rest \
--rest-address=0.0.0.0 \
Expand Down Expand Up @@ -270,6 +270,7 @@ if [ "$CC_CLIENT" = "teku" ]; then
--network=$TEKU_NETWORK \
--data-path=/ethclient/teku \
--p2p-port=$BN_P2P_PORT \
--Xvalidators-builder-registration-default-gas-limit=$BN_SUGGESTED_BLOCK_GAS_LIMIT \
--ee-endpoint=$EC_ENGINE_ENDPOINT \
--rest-api-enabled \
--rest-api-interface=0.0.0.0 \
Expand Down
4 changes: 4 additions & 0 deletions install/scripts/start-ec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ if [ "$CLIENT" = "geth" ]; then
--http.port ${EC_HTTP_PORT:-8545} \
--http.api eth,net,web3 \
--http.corsdomain=* \
--miner.gaslimit $EC_SUGGESTED_BLOCK_GAS_LIMIT \
--ws \
--ws.addr 0.0.0.0 \
--ws.port ${EC_WS_PORT:-8546} \
Expand Down Expand Up @@ -164,6 +165,7 @@ if [ "$CLIENT" = "nethermind" ]; then
--config $RP_NETHERMIND_NETWORK \
--Sync.SnapSync true \
--datadir /ethclient/nethermind \
--Blocks.TargetBlockGasLimit $EC_SUGGESTED_BLOCK_GAS_LIMIT \
--JsonRpc.Enabled true \
--JsonRpc.Host 0.0.0.0 \
--JsonRpc.Port ${EC_HTTP_PORT:-8545} \
Expand Down Expand Up @@ -249,6 +251,7 @@ if [ "$CLIENT" = "besu" ]; then
$BESU_NETWORK \
--data-path=/ethclient/besu \
--fast-sync-min-peers=3 \
--target-gas-limit $EC_SUGGESTED_BLOCK_GAS_LIMIT \
--rpc-http-enabled \
--rpc-http-host=0.0.0.0 \
--rpc-http-port=${EC_HTTP_PORT:-8545} \
Expand Down Expand Up @@ -315,6 +318,7 @@ if [ "$CLIENT" = "reth" ]; then
--http.port ${EC_HTTP_PORT:-8545} \
--http.api eth,net,web3 \
--http.corsdomain="*" \
--builder.gaslimit $EC_SUGGESTED_BLOCK_LIMIT \
--ws \
--ws.addr 0.0.0.0 \
--ws.port ${EC_WS_PORT:-8546} \
Expand Down
3 changes: 3 additions & 0 deletions install/scripts/start-vc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ if [ "$CC_CLIENT" = "lighthouse" ]; then
--datadir /validators/lighthouse \
--init-slashing-protection \
--logfile-max-number 0 \
--gas-limit $VC_SUGGESTED_BLOCK_GAS_LIMIT \
--beacon-nodes $CC_URL_STRING \
--suggested-fee-recipient $(cat /validators/$FEE_RECIPIENT_FILE) \
$VC_ADDITIONAL_FLAGS"
Expand Down Expand Up @@ -93,6 +94,7 @@ if [ "$CC_CLIENT" = "lodestar" ]; then
$FALLBACK_CC_STRING \
--keystoresDir /validators/lodestar/validators \
--secretsDir /validators/lodestar/secrets \
--defaultGasLimit $VC_SUGGESTED_BLOCK_GAS_LIMIT \
--suggestedFeeRecipient $(cat /validators/$FEE_RECIPIENT_FILE) \
$VC_ADDITIONAL_FLAGS"

Expand Down Expand Up @@ -179,6 +181,7 @@ if [ "$CC_CLIENT" = "prysm" ]; then
--wallet-dir /validators/prysm-non-hd \
--wallet-password-file /validators/prysm-non-hd/direct/accounts/secret \
--beacon-rpc-provider $CC_URL_STRING \
--suggested-gas-limit $VC_SUGGESTED_BLOCK_GAS_LIMIT \
--suggested-fee-recipient $(cat /validators/$FEE_RECIPIENT_FILE) \
$VC_ADDITIONAL_FLAGS"

Expand Down
1 change: 1 addition & 0 deletions install/templates/eth1.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ services:
- ETHSTATS_LOGIN={{.ExecutionCommon.EthstatsLogin}}
- EC_MAX_PEERS={{.GetECMaxPeers}}
- EC_P2P_PORT={{$p2p}}
- EC_SUGGESTED_BLOCK_GAS_LIMIT={{.ExecutionCommon.SuggestedBlockGasLimit}}
- EC_ADDITIONAL_FLAGS={{.GetECAdditionalFlags}}
- EC_HTTP_PORT={{.ExecutionCommon.HttpPort}}
- EC_WS_PORT={{.ExecutionCommon.WsPort}}
Expand Down
1 change: 1 addition & 0 deletions install/templates/eth2.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ services:
- EC_ENGINE_WS_ENDPOINT=ws://{{.GetExecutionHostname}}:{{.ExecutionCommon.EnginePort}}
- CUSTOM_GRAFFITI={{.CustomGraffiti}}
- ROCKET_POOL_VERSION=v{{.RocketPoolVersion}}
- BN_SUGGESTED_BLOCK_GAS_LIMIT={{.ConsensusCommon.SuggestedBlockGasLimit}}
- BN_P2P_PORT={{$p2p}}
- BN_API_PORT={{.ConsensusCommon.ApiPort}}
- BN_MAX_PEERS={{.GetBNMaxPeers}}
Expand Down
1 change: 1 addition & 0 deletions install/templates/validator.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ services:
- CUSTOM_GRAFFITI={{.CustomGraffiti}}
- ROCKET_POOL_VERSION=v{{.RocketPoolVersion}}
- ENABLE_METRICS={{.EnableMetrics}}
- VC_SUGGESTED_BLOCK_GAS_LIMIT={{.ConsensusCommon.SuggestedBlockGasLimit}}
- VC_METRICS_PORT={{.VcMetricsPort}}
- DOPPELGANGER_DETECTION={{.IsDoppelgangerEnabled}}
- VC_ADDITIONAL_FLAGS={{.VcAdditionalFlags}}
Expand Down

0 comments on commit 31b3bcb

Please sign in to comment.