From 89ac586bd42eeaf65d88b05a21f71d36158f664d Mon Sep 17 00:00:00 2001 From: Etan Kissling Date: Sat, 12 Mar 2022 22:12:18 +0100 Subject: [PATCH] serve light client data in CI / dev builds (#3487) Adjust config for CI / dev builds to serve light client data by default: `--serve-light-client-data=1 --import-light-client-data=only-new` --- Makefile | 1 + scripts/launch_local_testnet.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 5b7117738..2796583e2 100644 --- a/Makefile +++ b/Makefile @@ -306,6 +306,7 @@ define CONNECT_TO_NETWORK_IN_DEV_MODE --network=$(1) $(3) $(GOERLI_TESTNETS_PARAMS) \ --log-level="DEBUG; TRACE:discv5,networking; REQUIRED:none; DISABLED:none" \ --data-dir=build/data/shared_$(1)_$(NODE_ID) \ + --serve-light-client-data=1 --import-light-client-data=only-new \ --dump $(NODE_PARAMS) endef diff --git a/scripts/launch_local_testnet.sh b/scripts/launch_local_testnet.sh index e4e08387b..3f02712e6 100755 --- a/scripts/launch_local_testnet.sh +++ b/scripts/launch_local_testnet.sh @@ -597,6 +597,7 @@ for NUM_NODE in $(seq 0 $(( NUM_NODES - 1 ))); do ${STOP_AT_EPOCH_FLAG} \ --rest-port="$(( BASE_REST_PORT + NUM_NODE ))" \ --metrics-port="$(( BASE_METRICS_PORT + NUM_NODE ))" \ + --serve-light-client-data=1 --import-light-client-data=only-new \ ${EXTRA_ARGS} \ &> "${DATA_DIR}/log${NUM_NODE}.txt" &