From d016a3d2ac5edbe62b6cdce7b56b2f4d5c88b240 Mon Sep 17 00:00:00 2001 From: batphonghan Date: Mon, 3 Mar 2025 16:38:22 +0700 Subject: [PATCH] Update scripts --- install/scripts/start-bn.sh | 5 ++--- install/scripts/start-ec.sh | 1 + shared/services/config/mev-boost-config.go | 1 - stader-cli/service/migration.go | 10 ++++++++++ 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/install/scripts/start-bn.sh b/install/scripts/start-bn.sh index bba0f2ef..fbc916fc 100755 --- a/install/scripts/start-bn.sh +++ b/install/scripts/start-bn.sh @@ -81,7 +81,6 @@ if [ "$CC_CLIENT" = "lighthouse" ]; then --eth1-blocks-per-log-query 150 \ --disable-upnp \ --staking \ - --http-allow-sync-stalled \ --execution-jwt=/secrets/jwtsecret \ --historic-state-cache-size 2 \ $BN_ADDITIONAL_FLAGS" @@ -89,7 +88,7 @@ if [ "$CC_CLIENT" = "lighthouse" ]; then # Performance tuning for ARM systems UNAME_VAL=$(uname -m) if [ "$UNAME_VAL" = "arm64" ] || [ "$UNAME_VAL" = "aarch64" ]; then - CMD="$CMD --execution-timeout-multiplier 2 --disable-lock-timeouts" + CMD="$CMD --execution-timeout-multiplier 2" fi if [ ! -z "$MEV_BOOST_URL" ]; then @@ -216,7 +215,7 @@ if [ "$CC_CLIENT" = "prysm" ]; then echo "Prysm has been configured to employ Holesky, with the genesis state being a prerequisite." if [ ! -f "/ethclient/holesky-genesis.ssz" ]; then echo "Downloading genesis..." - wget https://github.com/eth-clients/holesky/raw/main/custom_config_data/genesis.ssz -O /ethclient/holesky-genesis.ssz + wget https://github.com/eth-clients/holesky/blob/main/metadata/genesis.ssz -O /ethclient/holesky-genesis.ssz echo "Download complete." else echo "The genesis state has already been downloaded, and the process will proceed accordingly." diff --git a/install/scripts/start-ec.sh b/install/scripts/start-ec.sh index d9dc5f5f..9c257537 100755 --- a/install/scripts/start-ec.sh +++ b/install/scripts/start-ec.sh @@ -274,6 +274,7 @@ if [ "$CLIENT" = "besu" ]; then --engine-rpc-port=${EC_ENGINE_PORT:-8551} \ --engine-host-allowlist=* \ --engine-jwt-secret=/secrets/jwtsecret \ + --Xbonsai-full-flat-db-enabled=true \ $EC_ADDITIONAL_FLAGS" if [ ! -z "$ETHSTATS_LABEL" ] && [ ! -z "$ETHSTATS_LOGIN" ]; then diff --git a/shared/services/config/mev-boost-config.go b/shared/services/config/mev-boost-config.go index 8f8078ba..9da36443 100644 --- a/shared/services/config/mev-boost-config.go +++ b/shared/services/config/mev-boost-config.go @@ -543,7 +543,6 @@ func createDefaultRelays() []config.MevRelay { Description: "Titan Relay is a neutral, Rust-based MEV-Boost Relay optimized for low latency throughput, geographical distribution, and robustness. Select this to enable the \"non-filtering\" relay from Titan.", Urls: map[config.Network]string{ config.Network_Mainnet: "https://0x8c4ed5e24fe5c6ae21018437bde147693f68cda427cd1122cf20819c30eda7ed74f72dece09bb313f2a1855595ab677d@global.titanrelay.xyz", - config.Network_Holesky: "https://0xaa58208899c6105603b74396734a6263cc7d947f444f396a90f7b7d3e65d102aec7e5e5291b27e08d02c50a050825c2f@holesky.titanrelay.xyz", }, Regulated: false, NoSandwiching: false, diff --git a/stader-cli/service/migration.go b/stader-cli/service/migration.go index fb3db2df..fa30fbb4 100644 --- a/stader-cli/service/migration.go +++ b/stader-cli/service/migration.go @@ -74,6 +74,11 @@ func migrate(c *cli.Context) (runBeforeUpgrades, rundAfterUpgrades []ConfigUpgra return nil, nil, err } + v164, err := parseVersion("1.6.4") + if err != nil { + return nil, nil, err + } + // Create the collection of upgraders upgraders := []ConfigUpgrader{ { @@ -120,6 +125,11 @@ func migrate(c *cli.Context) (runBeforeUpgrades, rundAfterUpgrades []ConfigUpgra upgradeFunc: func(_ *cli.Context) error { return nil }, needInstall: true, }, + { + version: v164, + upgradeFunc: func(_ *cli.Context) error { return nil }, + needInstall: true, + }, } staderClient, err := stader.NewClientFromCtx(c)