Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
61179a0dc3 |
@@ -12,6 +12,10 @@ API="${API:-eth,txpool,net,debug,web3}"
|
|||||||
GENESIS_URL="${GENESIS_URL:-https://raw.githubusercontent.com/crypto-org-chain/cronos-mainnet/master/cronosmainnet_25-1/genesis.json}"
|
GENESIS_URL="${GENESIS_URL:-https://raw.githubusercontent.com/crypto-org-chain/cronos-mainnet/master/cronosmainnet_25-1/genesis.json}"
|
||||||
SEEDS="${SEEDS:-0d5cf1394a1cfde28dc8f023567222abc0f47534@seed-0.cronos.com:26656,3032073adc06d710dd512240281637c1bd0c8a7b@seed-1.cronos.com:26656,04f43116b4c6c70054d9c2b7485383df5b1ed1da@seed-2.cronos.com:26656,337377dcda43d79c537d2c4d93ad3b698ce9452e@bd-cronos-mainnet-seed-node-01.bdnodes.net:26656}"
|
SEEDS="${SEEDS:-0d5cf1394a1cfde28dc8f023567222abc0f47534@seed-0.cronos.com:26656,3032073adc06d710dd512240281637c1bd0c8a7b@seed-1.cronos.com:26656,04f43116b4c6c70054d9c2b7485383df5b1ed1da@seed-2.cronos.com:26656,337377dcda43d79c537d2c4d93ad3b698ce9452e@bd-cronos-mainnet-seed-node-01.bdnodes.net:26656}"
|
||||||
STATESYNC_RPC="${STATESYNC_RPC:-https://cronos-rpc.publicnode.com:443}"
|
STATESYNC_RPC="${STATESYNC_RPC:-https://cronos-rpc.publicnode.com:443}"
|
||||||
|
PERSISTENT_PEERS="${PERSISTENT_PEERS:-0d5cf1394a1cfde28dc8f023567222abc0f47534@seed-0.cronos.com:26656,3032073adc06d710dd512240281637c1bd0c8a7b@seed-1.cronos.com:26656,04f43116b4c6c70054d9c2b7485383df5b1ed1da@seed-2.cronos.com:26656,337377dcda43d79c537d2c4d93ad3b698ce9452e@bd-cronos-mainnet-seed-node-01.bdnodes.net:26656}"
|
||||||
|
MAX_NUM_OUTBOUND_PEERS="${MAX_NUM_OUTBOUND_PEERS:-40}"
|
||||||
|
MAX_NUM_INBOUND_PEERS="${MAX_NUM_INBOUND_PEERS:-80}"
|
||||||
|
SKIP_TIMEOUT_COMMIT="${SKIP_TIMEOUT_COMMIT:-true}"
|
||||||
MIN_GAS="${MIN_GAS:-5000000000000basecro}"
|
MIN_GAS="${MIN_GAS:-5000000000000basecro}"
|
||||||
PRUNING="${PRUNING:-custom}"
|
PRUNING="${PRUNING:-custom}"
|
||||||
PRUNING_KEEP_RECENT="${PRUNING_KEEP_RECENT:-100}"
|
PRUNING_KEEP_RECENT="${PRUNING_KEEP_RECENT:-100}"
|
||||||
@@ -56,6 +60,10 @@ sed -i "/^\[evm\]/,/^\[/{s|^max-tx-gas-wanted = .*|max-tx-gas-wanted = $EVM_MAX_
|
|||||||
|
|
||||||
ct_patch_p2p "$CONFIG_DIR/config.toml" "$IP" "${P2P_PORT:-10521}"
|
ct_patch_p2p "$CONFIG_DIR/config.toml" "$IP" "${P2P_PORT:-10521}"
|
||||||
ct_merge_seeds "$CONFIG_DIR/config.toml" "$SEEDS"
|
ct_merge_seeds "$CONFIG_DIR/config.toml" "$SEEDS"
|
||||||
|
ct_set_persistent_peers "$CONFIG_DIR/config.toml" "$PERSISTENT_PEERS"
|
||||||
|
sed -i "s/^max_num_outbound_peers = .*/max_num_outbound_peers = ${MAX_NUM_OUTBOUND_PEERS}/" "$CONFIG_DIR/config.toml"
|
||||||
|
sed -i "s/^max_num_inbound_peers = .*/max_num_inbound_peers = ${MAX_NUM_INBOUND_PEERS}/" "$CONFIG_DIR/config.toml"
|
||||||
|
sed -i "s/^skip_timeout_commit = .*/skip_timeout_commit = ${SKIP_TIMEOUT_COMMIT}/" "$CONFIG_DIR/config.toml"
|
||||||
ct_configure_statesync "$CONFIG_DIR/config.toml" "$STATESYNC_RPC" 2000
|
ct_configure_statesync "$CONFIG_DIR/config.toml" "$STATESYNC_RPC" 2000
|
||||||
ct_set_moniker "$CONFIG_DIR/config.toml" "${MONIKER:-rpc-node}"
|
ct_set_moniker "$CONFIG_DIR/config.toml" "${MONIKER:-rpc-node}"
|
||||||
|
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ services:
|
|||||||
- "${GW_ALLOW_LIST:+traefik.http.middlewares.gwallowlist.ipallowlist.sourcerange=$GW_ALLOW_LIST}"
|
- "${GW_ALLOW_LIST:+traefik.http.middlewares.gwallowlist.ipallowlist.sourcerange=$GW_ALLOW_LIST}"
|
||||||
- "${GW_ALLOW_LIST:+traefik.http.routers.dshackle.middlewares=gwallowlist}"
|
- "${GW_ALLOW_LIST:+traefik.http.routers.dshackle.middlewares=gwallowlist}"
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- "host.docker.internal:172.17.0.1"
|
- "host.docker.internal:host-gateway"
|
||||||
networks:
|
networks:
|
||||||
- chains
|
- chains
|
||||||
logging:
|
logging:
|
||||||
|
|||||||
Reference in New Issue
Block a user