mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 22:26:42 +00:00
fix: entrypoint script for existing setup (#58)
This commit is contained in:
parent
d6f0d34bba
commit
6ebd351534
1 changed files with 225 additions and 220 deletions
|
|
@ -32,49 +32,54 @@ fi
|
||||||
|
|
||||||
# Generate signer key if needed
|
# Generate signer key if needed
|
||||||
if [ "$GETH_NODE_TYPE" = "signer" ]; then
|
if [ "$GETH_NODE_TYPE" = "signer" ]; then
|
||||||
if [ ! -f "$GETH_DATA_DIR/password" ]; then
|
if [ ! -f "$GETH_DATA_DIR/password" ]; then
|
||||||
echo -n "$GETH_KEYSTORE_PASSWORD" > "$GETH_DATA_DIR"/password
|
echo -n "$GETH_KEYSTORE_PASSWORD" > "$GETH_DATA_DIR"/password
|
||||||
fi
|
fi
|
||||||
if [ ! -d "$GETH_KEYSTORE_DIR" ]; then
|
|
||||||
if [ -n "$BLOCK_SIGNER_PRIVATE_KEY" ]; then
|
if [ ! -d "$GETH_KEYSTORE_DIR" ]; then
|
||||||
echo "$GETH_KEYSTORE_DIR missing, running account import"
|
if [ -n "$BLOCK_SIGNER_PRIVATE_KEY" ]; then
|
||||||
echo -n "$BLOCK_SIGNER_PRIVATE_KEY" | sed 's/0x//' > "$GETH_DATA_DIR"/block-signer-key
|
echo "$GETH_KEYSTORE_DIR missing, running account import"
|
||||||
"$GETH_BIN_PATH" \
|
echo -n "$BLOCK_SIGNER_PRIVATE_KEY" | sed 's/0x//' > "$GETH_DATA_DIR"/block-signer-key
|
||||||
--verbosity="$GETH_VERBOSITY" \
|
"$GETH_BIN_PATH" \
|
||||||
--log.format="$GETH_LOG_FORMAT" \
|
--verbosity="$GETH_VERBOSITY" \
|
||||||
$LOG_TAGS_OPTION \
|
--log.format="$GETH_LOG_FORMAT" \
|
||||||
--nousb \
|
$LOG_TAGS_OPTION \
|
||||||
account import \
|
--nousb \
|
||||||
--datadir="$GETH_DATA_DIR" \
|
account import \
|
||||||
--password="$GETH_DATA_DIR"/password \
|
--datadir="$GETH_DATA_DIR" \
|
||||||
"$GETH_DATA_DIR"/block-signer-key
|
--password="$GETH_DATA_DIR"/password \
|
||||||
fi
|
"$GETH_DATA_DIR"/block-signer-key
|
||||||
else
|
fi
|
||||||
echo "$GETH_KEYSTORE_DIR exists."
|
else
|
||||||
if [ -z "$BLOCK_SIGNER_PRIVATE_KEY" ]; then
|
echo "$GETH_KEYSTORE_DIR exists."
|
||||||
GETH_ACCOUNT_LIST=$("$GETH_BIN_PATH" --verbosity="$GETH_VERBOSITY" account list --datadir "$GETH_DATA_DIR")
|
if [ -n "$BLOCK_SIGNER_ADDRESS" ]; then
|
||||||
BLOCK_SIGNER_ADDRESS_WITHOUT_PREFIX=$(echo "$GETH_ACCOUNT_LIST" | grep -oE '[0-9a-fA-F]{40}$')
|
echo "Block signer address with 0x prefix: $BLOCK_SIGNER_ADDRESS"
|
||||||
BLOCK_SIGNER_ADDRESS="0x$BLOCK_SIGNER_ADDRESS_WITHOUT_PREFIX"
|
else
|
||||||
echo "Block signer address with 0x prefix: $BLOCK_SIGNER_ADDRESS"
|
if [ -z "$BLOCK_SIGNER_PRIVATE_KEY" ]; then
|
||||||
fi
|
GETH_ACCOUNT_LIST=$("$GETH_BIN_PATH" --verbosity="$GETH_VERBOSITY" account list --datadir "$GETH_DATA_DIR")
|
||||||
fi
|
BLOCK_SIGNER_ADDRESS_WITHOUT_PREFIX=$(echo "$GETH_ACCOUNT_LIST" | grep -oE '[0-9a-fA-F]{40}$')
|
||||||
|
BLOCK_SIGNER_ADDRESS="0x$BLOCK_SIGNER_ADDRESS_WITHOUT_PREFIX"
|
||||||
|
echo "Block signer address with 0x prefix: $BLOCK_SIGNER_ADDRESS"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Init geth if needed
|
# Init geth if needed
|
||||||
if [ ! -d "$GETH_CHAINDATA_DIR" ]; then
|
if [ ! -d "$GETH_CHAINDATA_DIR" ]; then
|
||||||
echo "$GETH_CHAINDATA_DIR missing, running init"
|
echo "$GETH_CHAINDATA_DIR missing, running init"
|
||||||
echo "Initializing genesis."
|
echo "Initializing genesis."
|
||||||
"$GETH_BIN_PATH" \
|
"$GETH_BIN_PATH" \
|
||||||
--verbosity="$GETH_VERBOSITY" \
|
--verbosity="$GETH_VERBOSITY" \
|
||||||
--log.format="$GETH_LOG_FORMAT" \
|
--log.format="$GETH_LOG_FORMAT" \
|
||||||
$LOG_TAGS_OPTION \
|
$LOG_TAGS_OPTION \
|
||||||
--nousb \
|
--nousb \
|
||||||
--state.scheme="$GETH_STATE_SCHEME" \
|
--state.scheme="$GETH_STATE_SCHEME" \
|
||||||
--db.engine=pebble \
|
--db.engine=pebble \
|
||||||
--datadir="$GETH_DATA_DIR" init \
|
--datadir="$GETH_DATA_DIR" init \
|
||||||
"$GENESIS_L1_PATH"
|
"$GENESIS_L1_PATH"
|
||||||
else
|
else
|
||||||
echo "$GETH_CHAINDATA_DIR exists."
|
echo "$GETH_CHAINDATA_DIR exists."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Obtain assigned container IP for p2p
|
# Obtain assigned container IP for p2p
|
||||||
|
|
@ -92,198 +97,198 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# (Optional) Echo the values for verification
|
# (Optional) Echo the values for verification
|
||||||
|
|
||||||
if [ "$GETH_NODE_TYPE" = "bootnode" ]; then
|
if [ "$GETH_NODE_TYPE" = "bootnode" ]; then
|
||||||
echo "Starting bootnode"
|
echo "Starting bootnode"
|
||||||
echo "$NODE_KEY" > $GETH_DATA_DIR/nodekey
|
echo "$NODE_KEY" > $GETH_DATA_DIR/nodekey
|
||||||
|
|
||||||
exec "$GETH_BIN_PATH" \
|
exec "$GETH_BIN_PATH" \
|
||||||
--verbosity="$GETH_VERBOSITY" \
|
--verbosity="$GETH_VERBOSITY" \
|
||||||
--log.format="$GETH_LOG_FORMAT" \
|
--log.format="$GETH_LOG_FORMAT" \
|
||||||
$LOG_TAGS_OPTION \
|
$LOG_TAGS_OPTION \
|
||||||
$ZERO_FEE_ADDRESSES \
|
$ZERO_FEE_ADDRESSES \
|
||||||
--datadir="$GETH_DATA_DIR" \
|
--datadir="$GETH_DATA_DIR" \
|
||||||
--port 30301 \
|
--port 30301 \
|
||||||
--http \
|
--http \
|
||||||
--http.corsdomain="*" \
|
--http.corsdomain="*" \
|
||||||
--http.vhosts="*" \
|
--http.vhosts="*" \
|
||||||
--http.addr="$NODE_IP" \
|
--http.addr="$NODE_IP" \
|
||||||
--http.port="$RPC_PORT" \
|
--http.port="$RPC_PORT" \
|
||||||
--http.api=web3,debug,eth,txpool,net,engine \
|
--http.api=web3,debug,eth,txpool,net,engine \
|
||||||
--ws \
|
--ws \
|
||||||
--ws.addr="$NODE_IP" \
|
--ws.addr="$NODE_IP" \
|
||||||
--ws.port="$WS_PORT" \
|
--ws.port="$WS_PORT" \
|
||||||
--ws.origins="*" \
|
--ws.origins="*" \
|
||||||
--ws.api=debug,eth,txpool,net,engine \
|
--ws.api=debug,eth,txpool,net,engine \
|
||||||
--syncmode="${GETH_SYNC_MODE}" \
|
--syncmode="${GETH_SYNC_MODE}" \
|
||||||
--gcmode=full \
|
--gcmode=full \
|
||||||
--state.scheme="$GETH_STATE_SCHEME" \
|
--state.scheme="$GETH_STATE_SCHEME" \
|
||||||
--db.engine=pebble \
|
--db.engine=pebble \
|
||||||
--networkid=$CHAIN_ID \
|
--networkid=$CHAIN_ID \
|
||||||
--nousb \
|
--nousb \
|
||||||
--metrics \
|
--metrics \
|
||||||
--metrics.addr="$NODE_IP" \
|
--metrics.addr="$NODE_IP" \
|
||||||
--metrics.port=6060 \
|
--metrics.port=6060 \
|
||||||
--pprof \
|
--pprof \
|
||||||
--pprof.addr="$NODE_IP" \
|
--pprof.addr="$NODE_IP" \
|
||||||
--pprof.port=60601 \
|
--pprof.port=60601 \
|
||||||
--nodekey $GETH_DATA_DIR/nodekey \
|
--nodekey $GETH_DATA_DIR/nodekey \
|
||||||
--netrestrict $NET_RESTRICT \
|
--netrestrict $NET_RESTRICT \
|
||||||
"$NAT_FLAG" \
|
"$NAT_FLAG" \
|
||||||
--txpool.accountqueue=512 \
|
--txpool.accountqueue=512 \
|
||||||
--rpc.allow-unprotected-txs \
|
--rpc.allow-unprotected-txs \
|
||||||
--miner.gasprice=50000000 \
|
--miner.gasprice=50000000 \
|
||||||
--txpool.pricelimit=50000000 \
|
--txpool.pricelimit=50000000 \
|
||||||
--gpo.maxprice=500000000000 \
|
--gpo.maxprice=500000000000
|
||||||
|
|
||||||
elif [ "$GETH_NODE_TYPE" = "signer" ]; then
|
elif [ "$GETH_NODE_TYPE" = "signer" ]; then
|
||||||
echo "Starting signer node"
|
echo "Starting signer node"
|
||||||
echo "$NODE_KEY" > $GETH_DATA_DIR/nodekey
|
echo "$NODE_KEY" > $GETH_DATA_DIR/nodekey
|
||||||
|
|
||||||
echo "BOOTNODE_ENDPOINT is set to: $BOOTNODE_ENDPOINT"
|
echo "BOOTNODE_ENDPOINT is set to: $BOOTNODE_ENDPOINT"
|
||||||
GETH_PORT="${GETH_PORT:-30311}"
|
GETH_PORT="${GETH_PORT:-30311}"
|
||||||
|
|
||||||
exec "$GETH_BIN_PATH" \
|
exec "$GETH_BIN_PATH" \
|
||||||
--verbosity="$GETH_VERBOSITY" \
|
--verbosity="$GETH_VERBOSITY" \
|
||||||
--log.format="$GETH_LOG_FORMAT" \
|
--log.format="$GETH_LOG_FORMAT" \
|
||||||
$LOG_TAGS_OPTION \
|
$LOG_TAGS_OPTION \
|
||||||
$ZERO_FEE_ADDRESSES \
|
$ZERO_FEE_ADDRESSES \
|
||||||
--datadir="$GETH_DATA_DIR" \
|
--datadir="$GETH_DATA_DIR" \
|
||||||
--port="$GETH_PORT" \
|
--port="$GETH_PORT" \
|
||||||
--syncmode="${GETH_SYNC_MODE}" \
|
--syncmode="${GETH_SYNC_MODE}" \
|
||||||
--gcmode=full \
|
--gcmode=full \
|
||||||
--state.scheme="$GETH_STATE_SCHEME" \
|
--state.scheme="$GETH_STATE_SCHEME" \
|
||||||
--db.engine=pebble \
|
--db.engine=pebble \
|
||||||
--http \
|
--http \
|
||||||
--http.corsdomain="*" \
|
--http.corsdomain="*" \
|
||||||
--http.vhosts="*" \
|
--http.vhosts="*" \
|
||||||
--http.addr="$NODE_IP" \
|
--http.addr="$NODE_IP" \
|
||||||
--http.port="$RPC_PORT" \
|
--http.port="$RPC_PORT" \
|
||||||
--http.api=web3,debug,eth,txpool,net,engine,clique \
|
--http.api=web3,debug,eth,txpool,net,engine,clique \
|
||||||
--bootnodes $BOOTNODE_ENDPOINT \
|
--bootnodes $BOOTNODE_ENDPOINT \
|
||||||
--networkid=$CHAIN_ID \
|
--networkid=$CHAIN_ID \
|
||||||
--unlock=$BLOCK_SIGNER_ADDRESS \
|
--unlock=$BLOCK_SIGNER_ADDRESS \
|
||||||
--password="$GETH_DATA_DIR"/password \
|
--password="$GETH_DATA_DIR"/password \
|
||||||
--mine \
|
--mine \
|
||||||
--miner.etherbase=$BLOCK_SIGNER_ADDRESS \
|
--miner.etherbase=$BLOCK_SIGNER_ADDRESS \
|
||||||
--allow-insecure-unlock \
|
--allow-insecure-unlock \
|
||||||
--nousb \
|
--nousb \
|
||||||
--nodekey $GETH_DATA_DIR/nodekey \
|
--nodekey $GETH_DATA_DIR/nodekey \
|
||||||
--netrestrict $NET_RESTRICT \
|
--netrestrict $NET_RESTRICT \
|
||||||
--metrics \
|
--metrics \
|
||||||
--metrics.addr="$NODE_IP" \
|
--metrics.addr="$NODE_IP" \
|
||||||
--metrics.port=6060 \
|
--metrics.port=6060 \
|
||||||
--pprof \
|
--pprof \
|
||||||
--pprof.addr="$NODE_IP" \
|
--pprof.addr="$NODE_IP" \
|
||||||
--pprof.port=60601 \
|
--pprof.port=60601 \
|
||||||
--ws \
|
--ws \
|
||||||
--ws.addr="$NODE_IP" \
|
--ws.addr="$NODE_IP" \
|
||||||
--ws.port="$WS_PORT" \
|
--ws.port="$WS_PORT" \
|
||||||
--ws.origins="*" \
|
--ws.origins="*" \
|
||||||
--ws.api=debug,eth,txpool,net,engine \
|
--ws.api=debug,eth,txpool,net,engine \
|
||||||
--rpc.allow-unprotected-txs \
|
--rpc.allow-unprotected-txs \
|
||||||
--authrpc.addr="$NODE_IP" \
|
--authrpc.addr="$NODE_IP" \
|
||||||
--authrpc.port="8551" \
|
--authrpc.port="8551" \
|
||||||
--authrpc.vhosts="*" \
|
--authrpc.vhosts="*" \
|
||||||
--txpool.accountqueue=512 \
|
--txpool.accountqueue=512 \
|
||||||
--miner.gasprice=50000000 \
|
--miner.gasprice=50000000 \
|
||||||
--txpool.pricelimit=50000000 \
|
--txpool.pricelimit=50000000 \
|
||||||
--gpo.maxprice=500000000000 \
|
--gpo.maxprice=500000000000 \
|
||||||
"$NAT_FLAG"
|
"$NAT_FLAG"
|
||||||
|
|
||||||
elif [ "$GETH_NODE_TYPE" = "member" ]; then
|
elif [ "$GETH_NODE_TYPE" = "member" ]; then
|
||||||
echo "Starting member node"
|
echo "Starting member node"
|
||||||
echo "$NODE_KEY" > $GETH_DATA_DIR/nodekey
|
echo "$NODE_KEY" > $GETH_DATA_DIR/nodekey
|
||||||
echo "BOOTNODE_ENDPOINT is set to: $BOOTNODE_ENDPOINT"
|
echo "BOOTNODE_ENDPOINT is set to: $BOOTNODE_ENDPOINT"
|
||||||
GETH_PORT="${GETH_PORT:-30311}"
|
GETH_PORT="${GETH_PORT:-30311}"
|
||||||
|
|
||||||
|
exec "$GETH_BIN_PATH" \
|
||||||
|
--verbosity="$GETH_VERBOSITY" \
|
||||||
|
--log.format="$GETH_LOG_FORMAT" \
|
||||||
|
$LOG_TAGS_OPTION \
|
||||||
|
$ZERO_FEE_ADDRESSES \
|
||||||
|
--datadir="$GETH_DATA_DIR" \
|
||||||
|
--port="$GETH_PORT" \
|
||||||
|
--syncmode="${GETH_SYNC_MODE}" \
|
||||||
|
--gcmode=full \
|
||||||
|
--state.scheme="$GETH_STATE_SCHEME" \
|
||||||
|
--db.engine=pebble \
|
||||||
|
--http \
|
||||||
|
--http.corsdomain="*" \
|
||||||
|
--http.vhosts="*" \
|
||||||
|
--http.addr="$NODE_IP" \
|
||||||
|
--http.port="$RPC_PORT" \
|
||||||
|
--http.api=web3,debug,eth,txpool,net,engine \
|
||||||
|
--bootnodes $BOOTNODE_ENDPOINT \
|
||||||
|
--networkid=$CHAIN_ID \
|
||||||
|
--password="$GETH_DATA_DIR"/password \
|
||||||
|
--nodekey $GETH_DATA_DIR/nodekey \
|
||||||
|
--metrics \
|
||||||
|
--metrics.addr="$NODE_IP" \
|
||||||
|
--metrics.port=6060 \
|
||||||
|
--pprof \
|
||||||
|
--pprof.addr="$NODE_IP" \
|
||||||
|
--pprof.port=60601 \
|
||||||
|
--ws \
|
||||||
|
--ws.addr="$NODE_IP" \
|
||||||
|
--ws.port="$WS_PORT" \
|
||||||
|
--ws.origins="*" \
|
||||||
|
--ws.api=debug,eth,txpool,net,engine \
|
||||||
|
--rpc.allow-unprotected-txs \
|
||||||
|
--authrpc.addr="$NODE_IP" \
|
||||||
|
--authrpc.port="8551" \
|
||||||
|
--authrpc.vhosts="*" \
|
||||||
|
--txpool.accountqueue=512 \
|
||||||
|
--miner.gasprice=50000000 \
|
||||||
|
--txpool.pricelimit=50000000 \
|
||||||
|
--gpo.maxprice=500000000000 \
|
||||||
|
"$NAT_FLAG"
|
||||||
|
|
||||||
exec "$GETH_BIN_PATH" \
|
|
||||||
--verbosity="$GETH_VERBOSITY" \
|
|
||||||
--log.format="$GETH_LOG_FORMAT" \
|
|
||||||
$LOG_TAGS_OPTION \
|
|
||||||
$ZERO_FEE_ADDRESSES \
|
|
||||||
--datadir="$GETH_DATA_DIR" \
|
|
||||||
--port="$GETH_PORT" \
|
|
||||||
--syncmode="${GETH_SYNC_MODE}" \
|
|
||||||
--gcmode=full \
|
|
||||||
--state.scheme="$GETH_STATE_SCHEME" \
|
|
||||||
--db.engine=pebble \
|
|
||||||
--http \
|
|
||||||
--http.corsdomain="*" \
|
|
||||||
--http.vhosts="*" \
|
|
||||||
--http.addr="$NODE_IP" \
|
|
||||||
--http.port="$RPC_PORT" \
|
|
||||||
--http.api=web3,debug,eth,txpool,net,engine \
|
|
||||||
--bootnodes $BOOTNODE_ENDPOINT \
|
|
||||||
--networkid=$CHAIN_ID \
|
|
||||||
--password="$GETH_DATA_DIR"/password \
|
|
||||||
--nodekey $GETH_DATA_DIR/nodekey \
|
|
||||||
--metrics \
|
|
||||||
--metrics.addr="$NODE_IP" \
|
|
||||||
--metrics.port=6060 \
|
|
||||||
--pprof \
|
|
||||||
--pprof.addr="$NODE_IP" \
|
|
||||||
--pprof.port=60601 \
|
|
||||||
--ws \
|
|
||||||
--ws.addr="$NODE_IP" \
|
|
||||||
--ws.port="$WS_PORT" \
|
|
||||||
--ws.origins="*" \
|
|
||||||
--ws.api=debug,eth,txpool,net,engine \
|
|
||||||
--rpc.allow-unprotected-txs \
|
|
||||||
--authrpc.addr="$NODE_IP" \
|
|
||||||
--authrpc.port="8551" \
|
|
||||||
--authrpc.vhosts="*" \
|
|
||||||
--txpool.accountqueue=512 \
|
|
||||||
--miner.gasprice=50000000 \
|
|
||||||
--txpool.pricelimit=50000000 \
|
|
||||||
--gpo.maxprice=500000000000 \
|
|
||||||
"$NAT_FLAG"
|
|
||||||
elif [ "$GETH_NODE_TYPE" = "archive" ]; then
|
elif [ "$GETH_NODE_TYPE" = "archive" ]; then
|
||||||
echo "Starting archive node"
|
echo "Starting archive node"
|
||||||
echo "BOOTNODE_ENDPOINT is set to: $BOOTNODE_ENDPOINT"
|
echo "BOOTNODE_ENDPOINT is set to: $BOOTNODE_ENDPOINT"
|
||||||
GETH_PORT="${GETH_PORT:-30311}"
|
GETH_PORT="${GETH_PORT:-30311}"
|
||||||
|
|
||||||
exec "$GETH_BIN_PATH" \
|
exec "$GETH_BIN_PATH" \
|
||||||
--verbosity="$GETH_VERBOSITY" \
|
--verbosity="$GETH_VERBOSITY" \
|
||||||
--log.format="$GETH_LOG_FORMAT" \
|
--log.format="$GETH_LOG_FORMAT" \
|
||||||
$LOG_TAGS_OPTION \
|
$LOG_TAGS_OPTION \
|
||||||
--datadir="$GETH_DATA_DIR" \
|
--datadir="$GETH_DATA_DIR" \
|
||||||
--port="$GETH_PORT" \
|
--port="$GETH_PORT" \
|
||||||
--syncmode="${GETH_SYNC_MODE}" \
|
--syncmode="${GETH_SYNC_MODE}" \
|
||||||
--gcmode=archive \
|
--gcmode=archive \
|
||||||
--history.state=0 \
|
--history.state=0 \
|
||||||
--history.transactions=0 \
|
--history.transactions=0 \
|
||||||
--state.scheme="$GETH_STATE_SCHEME" \
|
--state.scheme="$GETH_STATE_SCHEME" \
|
||||||
--db.engine=pebble \
|
--db.engine=pebble \
|
||||||
--http \
|
--http \
|
||||||
--http.corsdomain="*" \
|
--http.corsdomain="*" \
|
||||||
--http.vhosts="*" \
|
--http.vhosts="*" \
|
||||||
--http.addr="$NODE_IP" \
|
--http.addr="$NODE_IP" \
|
||||||
--http.port="$RPC_PORT" \
|
--http.port="$RPC_PORT" \
|
||||||
--http.api=web3,debug,eth,txpool,net,engine \
|
--http.api=web3,debug,eth,txpool,net,engine \
|
||||||
--bootnodes $BOOTNODE_ENDPOINT \
|
--bootnodes $BOOTNODE_ENDPOINT \
|
||||||
--networkid=$CHAIN_ID \
|
--networkid=$CHAIN_ID \
|
||||||
--password="$GETH_DATA_DIR"/password \
|
--password="$GETH_DATA_DIR"/password \
|
||||||
--metrics \
|
--metrics \
|
||||||
--metrics.addr="$NODE_IP" \
|
--metrics.addr="$NODE_IP" \
|
||||||
--metrics.port=6060 \
|
--metrics.port=6060 \
|
||||||
--pprof \
|
--pprof \
|
||||||
--pprof.addr="$NODE_IP" \
|
--pprof.addr="$NODE_IP" \
|
||||||
--pprof.port=60601 \
|
--pprof.port=60601 \
|
||||||
--ws \
|
--ws \
|
||||||
--ws.addr="$NODE_IP" \
|
--ws.addr="$NODE_IP" \
|
||||||
--ws.port="$WS_PORT" \
|
--ws.port="$WS_PORT" \
|
||||||
--ws.origins="*" \
|
--ws.origins="*" \
|
||||||
--ws.api=debug,eth,txpool,net,engine \
|
--ws.api=debug,eth,txpool,net,engine \
|
||||||
--rpc.allow-unprotected-txs \
|
--rpc.allow-unprotected-txs \
|
||||||
--authrpc.addr="$NODE_IP" \
|
--authrpc.addr="$NODE_IP" \
|
||||||
--authrpc.port="8551" \
|
--authrpc.port="8551" \
|
||||||
--authrpc.vhosts="*" \
|
--authrpc.vhosts="*" \
|
||||||
--txpool.accountqueue=512 \
|
--txpool.accountqueue=512 \
|
||||||
--miner.gasprice=50000000 \
|
--miner.gasprice=50000000 \
|
||||||
--txpool.pricelimit=50000000 \
|
--txpool.pricelimit=50000000 \
|
||||||
--gpo.maxprice=500000000000 \
|
--gpo.maxprice=500000000000 \
|
||||||
"$NAT_FLAG"
|
"$NAT_FLAG"
|
||||||
else
|
else
|
||||||
echo "Invalid GETH_NODE_TYPE specified"
|
echo "Invalid GETH_NODE_TYPE specified"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue