From 28147e57f76ae2d3ab49521bb92b4206fb86dbe1 Mon Sep 17 00:00:00 2001 From: Carlos Lostao Date: Wed, 15 Nov 2023 20:42:42 +0100 Subject: [PATCH] feat: default ethapis set to none --- docker/client/entrypoint.sh | 8 +++++++- node/src/eth.rs | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/docker/client/entrypoint.sh b/docker/client/entrypoint.sh index 0963903..4908634 100644 --- a/docker/client/entrypoint.sh +++ b/docker/client/entrypoint.sh @@ -36,7 +36,7 @@ if [ -n "$SEED" ]; then --key-type gran fi -START_COMMAND="./target/release/stability --base-path /tmp/node --validator --unsafe-rpc-external --rpc-cors all --rpc-port 9933 --prometheus-external --chain=$CHAIN_TARGET" +START_COMMAND="./target/release/stability --base-path /tmp/node --validator --unsafe-rpc-external --rpc-cors all --rpc-port 9933 --prometheus-external --ethapi --chain=$CHAIN_TARGET" if [ "$MODE" = "archive" ]; then START_COMMAND="$START_COMMAND --pruning archive" @@ -54,6 +54,12 @@ if [ -n "$ZERO_GAS_TX_POOL" ]; then START_COMMAND="$START_COMMAND --zero-gas-tx-pool $ZERO_GAS_TX_POOL" fi +if [ -n "$CUSTOM_ETH_APIS" ]; then + START_COMMAND="$START_COMMAND $CUSTOM_ETH_APIS" +else + START_COMMAND="$START_COMMAND txpool,debug,trace" +fi + echo "Starting $CHAIN_TARGET chain" eval $START_COMMAND diff --git a/node/src/eth.rs b/node/src/eth.rs index 4a1b202..40a9ffa 100644 --- a/node/src/eth.rs +++ b/node/src/eth.rs @@ -136,7 +136,7 @@ pub struct EthConfiguration { #[arg(long, default_value = "300")] pub ethapi_trace_cache_duration: u64, - #[arg(long, value_delimiter = ',', default_value = "debug,trace")] + #[arg(long, value_delimiter = ',', default_value = "none")] pub ethapi: Vec, }