Skip to content

Commit

Permalink
feat: default ethapis set to none
Browse files Browse the repository at this point in the history
  • Loading branch information
clostao committed Nov 15, 2023
1 parent a864efb commit 28147e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion docker/client/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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

2 changes: 1 addition & 1 deletion node/src/eth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<EthApi>,

}
Expand Down

0 comments on commit 28147e5

Please sign in to comment.