seeds and peer issues tackle3d
This commit is contained in:
@@ -1,4 +1,14 @@
|
||||
---
|
||||
# you should backup the peers of your beacond node frequently.
|
||||
# docker exec -it rpc-berachain-bartio-archive-node-1 curl http://localhost:26657/net_info | jq -r '
|
||||
# .result.peers[]
|
||||
# | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr | split(":") | last)"
|
||||
#' | paste -sd,
|
||||
# and then set the PERSISTENT_PEERS environment variable for the beacon node which will be inserted into the config toml by the init script...
|
||||
# SEEDS are published in the official repository https://github.com/berachain/beacon-kit/tree/main/testing/networks/80084/cl-seeds.txt
|
||||
# if that file is found then the init script will merge them into any configured seeds from the environment variable.
|
||||
# If the environment variable is empty and the file is found then the init script will use the seeds from the config.toml file that was
|
||||
# downloaded in initialization from the repo above.
|
||||
|
||||
services:
|
||||
berachain-bartio-archive:
|
||||
|
||||
@@ -1,4 +1,14 @@
|
||||
---
|
||||
# you should backup the peers of your beacond node frequently.
|
||||
# docker exec -it rpc-berachain-bartio-node-1 curl http://localhost:26657/net_info | jq -r '
|
||||
# .result.peers[]
|
||||
# | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr | split(":") | last)"
|
||||
#' | paste -sd,
|
||||
# and then set the PERSISTENT_PEERS environment variable for the beacon node which will be inserted into the config toml by the init script...
|
||||
# SEEDS are published in the official repository https://github.com/berachain/beacon-kit/tree/main/testing/networks/80084/cl-seeds.txt
|
||||
# if that file is found then the init script will merge them into any configured seeds from the environment variable.
|
||||
# If the environment variable is empty and the file is found then the init script will use the seeds from the config.toml file that was
|
||||
# downloaded in initialization from the repo above.
|
||||
|
||||
services:
|
||||
berachain-bartio:
|
||||
|
||||
@@ -1,4 +1,14 @@
|
||||
---
|
||||
# you should backup the peers of your beacond node frequently.
|
||||
# docker exec -it rpc-berachain-bepolia-archive-node-1 curl http://localhost:26657/net_info | jq -r '
|
||||
# .result.peers[]
|
||||
# | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr | split(":") | last)"
|
||||
#' | paste -sd,
|
||||
# and then set the PERSISTENT_PEERS environment variable for the beacon node which will be inserted into the config toml by the init script...
|
||||
# SEEDS are published in the official repository https://github.com/berachain/beacon-kit/tree/main/testing/networks/80069/cl-seeds.txt
|
||||
# if that file is found then the init script will merge them into any configured seeds from the environment variable.
|
||||
# If the environment variable is empty and the file is found then the init script will use the seeds from the config.toml file that was
|
||||
# downloaded in initialization from the repo above.
|
||||
|
||||
services:
|
||||
berachain-bepolia-archive:
|
||||
@@ -91,6 +101,8 @@ services:
|
||||
- IP=${IP}
|
||||
- MONIKER=d${DOMAIN:-local}
|
||||
- P2P_PORT=16347
|
||||
- PERSISTENT_PEERS=${BERACHAIN_BEPOLIA_BEACON_KIT_PEERS:-6d3a988ad84e02c37249b78628dbaf344784ea1a@108.129.86.179:30175,73ab55f52534c394f769b3a89d22eb349f053f3b@54.155.2.82:26656,7c4df69bc100d0eff84eefcf294f91c7aadebfd2@150.136.10.166:26656,b74208a6bcd76b6d06d4f308f1dd6c7b6d0a9f29@129.213.43.186:26656,233133cf27dd844af9b78e89625f001864bcfc92@57.129.73.89:32001,3d254fc9ed08346aedb71ccdf90bea67f7cbd00b@144.217.189.120:26656,e726816f42831689eab9378d5d577f1d06d25716@134.65.195.117:36656,f14545716ceeafba11f6ecd64d8d77aaf16d40c0@150.136.41.96:26656,737a435f2cb00c1e7b945cc52d7864eb7b70b992@185.242.112.107:16347,7724febbb335af74669fd8d8a88d37401c657386@129.213.27.223:26656,8bac4ade15a1d2f8665b62c71bf9d27112dbbbd6@40.160.22.31:26656,a3f5727fa125cdcd247b893f267f406c3f7d44a5@15.204.104.159:26656,79dee163a6ddedf2cb1edd0cbcbb26722c0e7f86@148.113.216.106:26656,d1251c410183c5357161a4a1812f35144e9db560@150.136.211.15:26656,a5ccf1b754651ec080dabc7e065d078ab2bc83bb@34.152.4.236:26656,0f3c31b2cef708275ad846fce4f30a8e0fbceecc@150.136.220.194:26656,a5f001d5e032caf46b81bf5d067b190ebf519f28@150.136.149.242:26656,55747a55410a3dbda9479d4cbb0a57016e1a4587@34.126.82.251:26656,5bb0cf7aab12a40ca920f84eddb9485b9d9284e1@23.227.222.185:37557,33b7a034787d7dbe95044ec140a34bba691b7310@3.252.67.180:30175,986f47732f3297c746d995696bb632a8735e2f30@82.197.183.13:26656,83983b76ba834110c4fe03b63d59f317b9c837c2@34.159.191.94:26656,76c1693781b9070d96f8cd640bc46d29e694fef5@74.15.24.112:21001,9805ae8ca90374c4cc3a0b1ba1d32a541e5da0c6@87.246.108.86:30715,068d83eb15836cd1777b06442e3c52d5e9bd3a99@164.152.161.131:37557,8a5908219e7a566acb7fbad157b37c32f2ff7e92@217.22.153.180:26656,e2f056e84cad629dfb7e7b0ca82060f0f5d45363@38.18.230.23:16347,e82aa9e1c41397cfc92f9af24a0cf5b3f1839dcd@91.198.59.11:27756,b82d334d16385c16148c6852ed956abcdae03b5e@38.114.121.59:16347,6da7d1e06161238fe5855eea0710dcd71ef00535@40.160.22.37:26656,e5f97876c7a3d39013b2eef291ca5670ef595b30@66.70.164.133:26656,c8ac56bc9045c720a4dbc541598e5b1a76ec7e6e@134.65.194.144:37557,b8c2dc40585e32c28c69d8c14818c9828d76709a@65.108.98.89:26656,e1b058e5cfa2b836ddaa496b10911da62dcf182e@169.155.168.156:36656,e93fbb087acb7c0f8ca850a796310bb745b510b6@23.227.222.131:36656,9989f4bb3e3b6975f7d056aaf150e7f10f046344@34.47.86.5:26656,6ea643a1bdf026460769f3e89e2bd213d610281f@44.246.151.147:26656,b442414dda8fa23e893b8ea703ebf01ce0655e14@162.19.240.10:26656}
|
||||
- SEEDS=${BERACHAIN_BEPOLIA_BEACON_KIT_SEEDS:-9aa463497679e18a8a6ddc5e8503071255ce3844@34.47.83.64:26656,52b8bfb58c1d60774dd55310b24740569587ef5e@34.64.49.76:26656,1c8aa4af80684c29904a09044ffafba2e1814a30@34.64.211.6:26656,9989f4bb3e3b6975f7d056aaf150e7f10f046344@34.64.76.252:26656,30ebf8be0523a060b6b2baca1095abc92cca5caa@34.124.255.167:26656,55747a55410a3dbda9479d4cbb0a57016e1a4587@34.143.242.236:26656,f833e6317680a4dec3e2c6a11c8f4361bcff0c89@34.142.137.107:26656,65d3fb4f953532a9cc1f3a9417831419a7847ad8@34.143.221.131:26656,27d1edaed99a711a3f2862cc95c6361bc8c08cb9@34.159.202.238:26656,e56e965bd53832d47cf2f7cc2b7118c20c0c5b19@34.89.234.189:26656,f0f1a94a45f894be013ba16ebac09426aeadfe3b@34.159.175.241:26656,58b349f2d3f2206798aae4f8d87141f095095503@34.159.220.160:26656,d095b955e4ee6e48d6ed821179d8de87725f2ed7@35.203.95.212:26656,9499000274a522d85f91dbdac26945bbe2a144ba@35.234.244.49:26656,33ad9c7b2fa9cf0c5425d26af9a2af9d75600a9c@35.203.75.59:26656,a5ccf1b754651ec080dabc7e065d078ab2bc83bb@34.95.45.160:26656}
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- chains
|
||||
|
||||
@@ -1,4 +1,14 @@
|
||||
---
|
||||
# you should backup the peers of your beacond node frequently.
|
||||
# docker exec -it rpc-berachain-bepolia-node-1 curl http://localhost:26657/net_info | jq -r '
|
||||
# .result.peers[]
|
||||
# | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr | split(":") | last)"
|
||||
#' | paste -sd,
|
||||
# and then set the PERSISTENT_PEERS environment variable for the beacon node which will be inserted into the config toml by the init script...
|
||||
# SEEDS are published in the official repository https://github.com/berachain/beacon-kit/tree/main/testing/networks/80069/cl-seeds.txt
|
||||
# if that file is found then the init script will merge them into any configured seeds from the environment variable.
|
||||
# If the environment variable is empty and the file is found then the init script will use the seeds from the config.toml file that was
|
||||
# downloaded in initialization from the repo above.
|
||||
|
||||
services:
|
||||
berachain-bepolia:
|
||||
@@ -92,6 +102,8 @@ services:
|
||||
- IP=${IP}
|
||||
- MONIKER=d${DOMAIN:-local}
|
||||
- P2P_PORT=17274
|
||||
- PERSISTENT_PEERS=${BERACHAIN_BEPOLIA_BEACON_KIT_PEERS:-6d3a988ad84e02c37249b78628dbaf344784ea1a@108.129.86.179:30175,73ab55f52534c394f769b3a89d22eb349f053f3b@54.155.2.82:26656,7c4df69bc100d0eff84eefcf294f91c7aadebfd2@150.136.10.166:26656,b74208a6bcd76b6d06d4f308f1dd6c7b6d0a9f29@129.213.43.186:26656,233133cf27dd844af9b78e89625f001864bcfc92@57.129.73.89:32001,3d254fc9ed08346aedb71ccdf90bea67f7cbd00b@144.217.189.120:26656,e726816f42831689eab9378d5d577f1d06d25716@134.65.195.117:36656,f14545716ceeafba11f6ecd64d8d77aaf16d40c0@150.136.41.96:26656,737a435f2cb00c1e7b945cc52d7864eb7b70b992@185.242.112.107:16347,7724febbb335af74669fd8d8a88d37401c657386@129.213.27.223:26656,8bac4ade15a1d2f8665b62c71bf9d27112dbbbd6@40.160.22.31:26656,a3f5727fa125cdcd247b893f267f406c3f7d44a5@15.204.104.159:26656,79dee163a6ddedf2cb1edd0cbcbb26722c0e7f86@148.113.216.106:26656,d1251c410183c5357161a4a1812f35144e9db560@150.136.211.15:26656,a5ccf1b754651ec080dabc7e065d078ab2bc83bb@34.152.4.236:26656,0f3c31b2cef708275ad846fce4f30a8e0fbceecc@150.136.220.194:26656,a5f001d5e032caf46b81bf5d067b190ebf519f28@150.136.149.242:26656,55747a55410a3dbda9479d4cbb0a57016e1a4587@34.126.82.251:26656,5bb0cf7aab12a40ca920f84eddb9485b9d9284e1@23.227.222.185:37557,33b7a034787d7dbe95044ec140a34bba691b7310@3.252.67.180:30175,986f47732f3297c746d995696bb632a8735e2f30@82.197.183.13:26656,83983b76ba834110c4fe03b63d59f317b9c837c2@34.159.191.94:26656,76c1693781b9070d96f8cd640bc46d29e694fef5@74.15.24.112:21001,9805ae8ca90374c4cc3a0b1ba1d32a541e5da0c6@87.246.108.86:30715,068d83eb15836cd1777b06442e3c52d5e9bd3a99@164.152.161.131:37557,8a5908219e7a566acb7fbad157b37c32f2ff7e92@217.22.153.180:26656,e2f056e84cad629dfb7e7b0ca82060f0f5d45363@38.18.230.23:16347,e82aa9e1c41397cfc92f9af24a0cf5b3f1839dcd@91.198.59.11:27756,b82d334d16385c16148c6852ed956abcdae03b5e@38.114.121.59:16347,6da7d1e06161238fe5855eea0710dcd71ef00535@40.160.22.37:26656,e5f97876c7a3d39013b2eef291ca5670ef595b30@66.70.164.133:26656,c8ac56bc9045c720a4dbc541598e5b1a76ec7e6e@134.65.194.144:37557,b8c2dc40585e32c28c69d8c14818c9828d76709a@65.108.98.89:26656,e1b058e5cfa2b836ddaa496b10911da62dcf182e@169.155.168.156:36656,e93fbb087acb7c0f8ca850a796310bb745b510b6@23.227.222.131:36656,9989f4bb3e3b6975f7d056aaf150e7f10f046344@34.47.86.5:26656,6ea643a1bdf026460769f3e89e2bd213d610281f@44.246.151.147:26656,b442414dda8fa23e893b8ea703ebf01ce0655e14@162.19.240.10:26656}
|
||||
- SEEDS=${BERACHAIN_BEPOLIA_BEACON_KIT_SEEDS:-9aa463497679e18a8a6ddc5e8503071255ce3844@34.47.83.64:26656,52b8bfb58c1d60774dd55310b24740569587ef5e@34.64.49.76:26656,1c8aa4af80684c29904a09044ffafba2e1814a30@34.64.211.6:26656,9989f4bb3e3b6975f7d056aaf150e7f10f046344@34.64.76.252:26656,30ebf8be0523a060b6b2baca1095abc92cca5caa@34.124.255.167:26656,55747a55410a3dbda9479d4cbb0a57016e1a4587@34.143.242.236:26656,f833e6317680a4dec3e2c6a11c8f4361bcff0c89@34.142.137.107:26656,65d3fb4f953532a9cc1f3a9417831419a7847ad8@34.143.221.131:26656,27d1edaed99a711a3f2862cc95c6361bc8c08cb9@34.159.202.238:26656,e56e965bd53832d47cf2f7cc2b7118c20c0c5b19@34.89.234.189:26656,f0f1a94a45f894be013ba16ebac09426aeadfe3b@34.159.175.241:26656,58b349f2d3f2206798aae4f8d87141f095095503@34.159.220.160:26656,d095b955e4ee6e48d6ed821179d8de87725f2ed7@35.203.95.212:26656,9499000274a522d85f91dbdac26945bbe2a144ba@35.234.244.49:26656,33ad9c7b2fa9cf0c5425d26af9a2af9d75600a9c@35.203.75.59:26656,a5ccf1b754651ec080dabc7e065d078ab2bc83bb@34.95.45.160:26656}
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- chains
|
||||
|
||||
@@ -1,4 +1,14 @@
|
||||
---
|
||||
# you should backup the peers of your beacond node frequently.
|
||||
# docker exec -it rpc-berachain-mainnet-archive-node-1 curl http://localhost:26657/net_info | jq -r '
|
||||
# .result.peers[]
|
||||
# | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr | split(":") | last)"
|
||||
#' | paste -sd,
|
||||
# and then set the PERSISTENT_PEERS environment variable for the beacon node which will be inserted into the config toml by the init script...
|
||||
# SEEDS are published in the official repository https://github.com/berachain/beacon-kit/tree/main/testing/networks/80094/cl-seeds.txt
|
||||
# if that file is found then the init script will merge them into any configured seeds from the environment variable.
|
||||
# If the environment variable is empty and the file is found then the init script will use the seeds from the config.toml file that was
|
||||
# downloaded in initialization from the repo above.
|
||||
|
||||
services:
|
||||
berachain-mainnet-archive:
|
||||
|
||||
@@ -1,4 +1,14 @@
|
||||
---
|
||||
# you should backup the peers of your beacond node frequently.
|
||||
# docker exec -it rpc-berachain-mainnet-node-1 curl http://localhost:26657/net_info | jq -r '
|
||||
# .result.peers[]
|
||||
# | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr | split(":") | last)"
|
||||
#' | paste -sd,
|
||||
# and then set the PERSISTENT_PEERS environment variable for the beacon node which will be inserted into the config toml by the init script...
|
||||
# SEEDS are published in the official repository https://github.com/berachain/beacon-kit/tree/main/testing/networks/80094/cl-seeds.txt
|
||||
# if that file is found then the init script will merge them into any configured seeds from the environment variable.
|
||||
# If the environment variable is empty and the file is found then the init script will use the seeds from the config.toml file that was
|
||||
# downloaded in initialization from the repo above.
|
||||
|
||||
services:
|
||||
berachain-mainnet:
|
||||
|
||||
@@ -26,7 +26,7 @@ NAT_STRING="${IP}:${P2P_PORT:-55696}"
|
||||
|
||||
echo "$JWTSECRET" > "$CONFIG_DIR/jwt.hex"
|
||||
|
||||
#SEEDS_URL="https://raw.githubusercontent.com/berachain/beacon-kit/main/testing/networks/$CHAINID/cl-seeds.txt"
|
||||
SEEDS_URL="https://raw.githubusercontent.com/berachain/beacon-kit/main/testing/networks/$CHAINID/cl-seeds.txt"
|
||||
|
||||
|
||||
env
|
||||
@@ -66,13 +66,27 @@ sed -i "/^\[p2p\]/,/^\[/{s|^external_address = .*|external_address = \"$NAT_STRI
|
||||
|
||||
|
||||
# Fetch and format SEEDS
|
||||
#SEEDS=$(curl -s "$SEEDS_URL" | tail -n +2 | tr '\n' ',' | sed 's/,$//')
|
||||
|
||||
# Update seeds and persistent_peers
|
||||
#if [ -n "$SEEDS" ] && [ -f "$CONFIG_DIR/config.toml" ]; then
|
||||
# sed -i "s/^seeds = \".*\"/seeds = \"$SEEDS\"/" "$CONFIG_DIR/config.toml"
|
||||
# sed -i "s/^persistent_peers = \".*\"/persistent_peers = \"$SEEDS\"/" "$CONFIG_DIR/config.toml"
|
||||
#fi
|
||||
# Add fresh seeds to the config from the official repository
|
||||
# curl will fail with error status if the file is not found due to the -f flag
|
||||
|
||||
OFFICIAL_SEEDS=$(curl -f -s "$SEEDS_URL" | tail -n +2 | tr '\n' ',' | sed 's/,$//')
|
||||
CURL_EXIT_CODE=$?
|
||||
|
||||
if [ $CURL_EXIT_CODE -ne 0 ]; then
|
||||
echo "Failed to fetch seeds from the official repository: $SEEDS_URL" >&2
|
||||
else
|
||||
echo "Fetched seeds from the official repository, merging with configured seeds"
|
||||
SEEDS=$(echo "${SEEDS},${OFFICIAL_SEEDS}" | tr ',' '\n' | sed '/^$/d' | sort -u | paste -sd,)
|
||||
fi
|
||||
|
||||
# Update the config.toml file
|
||||
if [ -n "$SEEDS" ]; then
|
||||
sed -i "s/^seeds = \".*\"/seeds = \"${SEEDS}\"/" "$CONFIG_DIR/config.toml"
|
||||
fi
|
||||
|
||||
if [ -n "$PERSISTENT_PEERS" ]; then
|
||||
sed -i "s/^persistent_peers = \".*\"/persistent_peers = \"${PERSISTENT_PEERS}\"/" "$CONFIG_DIR/config.toml"
|
||||
fi
|
||||
|
||||
# Update RPC dial URL in app.toml
|
||||
if [ -f "$CONFIG_DIR/app.toml" ]; then
|
||||
|
||||
Reference in New Issue
Block a user