From e2ba9b36ea249c1bef54df315c150040a32310d3 Mon Sep 17 00:00:00 2001 From: goldsquid Date: Wed, 17 Sep 2025 18:15:19 +0700 Subject: [PATCH] hemi learnigns --- ...i-mainnet-op-geth-pruned-leveldb-hash.yml} | 61 ++++++++++--------- 1 file changed, 33 insertions(+), 28 deletions(-) rename op/geth/{hemi-mainnet-op-geth-pruned-pebble-hash.yml => hemi-mainnet-op-geth-pruned-leveldb-hash.yml} (84%) diff --git a/op/geth/hemi-mainnet-op-geth-pruned-pebble-hash.yml b/op/geth/hemi-mainnet-op-geth-pruned-leveldb-hash.yml similarity index 84% rename from op/geth/hemi-mainnet-op-geth-pruned-pebble-hash.yml rename to op/geth/hemi-mainnet-op-geth-pruned-leveldb-hash.yml index 40e13b82..c24c8ab3 100644 --- a/op/geth/hemi-mainnet-op-geth-pruned-pebble-hash.yml +++ b/op/geth/hemi-mainnet-op-geth-pruned-leveldb-hash.yml @@ -20,7 +20,7 @@ x-logging-defaults: &logging-defaults # ... # IP=$(curl ipinfo.io/ip) # DOMAIN=${IP}.traefik.me -# COMPOSE_FILE=base.yml:rpc.yml:op/geth/hemi-mainnet-op-geth-pruned-pebble-hash.yml +# COMPOSE_FILE=base.yml:rpc.yml:op/geth/hemi-mainnet-op-geth-pruned-leveldb-hash.yml # # docker compose up -d # @@ -46,8 +46,8 @@ services: nofile: 1048576 # Max open files (for RPC/WS connections) user: root ports: - - 12511:12511 - - 12511:12511/udp + - 14669:14669 + - 14669:14669/udp expose: - 8545 - 6060 @@ -68,7 +68,7 @@ services: command: - --bootnodes=enode://e7970a29d89f8b158371a8d4aca909ee8c1c759e711547b797a6a6f01513c1e7c85121dd2600397ca20cebf3cea21025001be7c0f577b496caf32ea0433a1cfd@34.90.21.246:30303,enode://70877d3aa6c4ccc09d960c269846215d5dcc8bf47013ac532c1ccc3d9cfe61434c96b9d6cad88a96c3f91187fb00214d903a6be6d8e93140ac4a3c099684ce34@34.13.162.152:30303,enode://27f75e68a8c14cae2f4e12f060477c150767e98149e16a448baddc25d800c008edf8b1fefd13b206c27e5473ac9234ba1958a8267fe5272e9de3819ac080bf22@34.13.171.139:30303,enode://588ffb65f841aede8d8f69a3175f9cfed1b79d20d40a7feb8a70e574b5610fb4049bf02f3170f1ae25bff806b2c823653b28af711e1962ea3f45d99d58608191@34.91.216.121:30303,enode://ba86a76186268948bc34b7fa1c2f08c24ed60cda61346cf1a1cca278b0ef1de49e567039952e06e4887a0252974401a6d6729bfc12945c6d8c65eacbf3b11ca7@34.141.148.19:30303 - --datadir=/data - - --db.engine=pebble + - --db.engine=leveldb - --gcmode=full - --hvm.genesisheader=0000003efaaa2ba65de684c512bb67ef115298d1d16bcb49b16c02000000000000000000ed31a56788c4488afc4ee69e0791ad6aeeb9ea05f069e0fdde6159068765ad3f4128a96726770217e7f41c86 \ - --hvm.genesisheight=883092 @@ -78,12 +78,13 @@ services: - --metrics.addr=0.0.0.0 - --metrics.port=6060 - --nat=extip:${IP} - - --port=12511 + - --networkid=43111 + - --port=14669 - --rpc.gascap=600000000 - --rpc.txfeecap=0 - --state.scheme=hash - --syncmode=full - - --tbc.leveldbhome=/data/tbc \ + - --tbc.leveldbhome=/data/tbc/data \ - --tbc.network=mainnet - --http - --http.addr=0.0.0.0 @@ -103,7 +104,7 @@ services: networks: - chains volumes: - - ${HEMI_MAINNET_OP_GETH_PRUNED_PEBBLE_HASH_DATA:-hemi-mainnet-op-geth-pruned-pebble-hash}:/data + - ${HEMI_MAINNET_OP_GETH_PRUNED_LEVELDB_HASH_DATA:-hemi-mainnet-op-geth-pruned-leveldb-hash}:/data - ./op/hemi/mainnet:/config - .jwtsecret:/jwtsecret:ro - /slowdisk:/slowdisk @@ -113,19 +114,19 @@ services: - prometheus-scrape.port=6060 - prometheus-scrape.path=/debug/metrics/prometheus - traefik.enable=true - - traefik.http.middlewares.hemi-mainnet-op-geth-pruned-pebble-hash-stripprefix.stripprefix.prefixes=/hemi-mainnet - - traefik.http.services.hemi-mainnet-op-geth-pruned-pebble-hash.loadbalancer.server.port=8545 - - ${NO_SSL:-traefik.http.routers.hemi-mainnet-op-geth-pruned-pebble-hash.entrypoints=websecure} - - ${NO_SSL:-traefik.http.routers.hemi-mainnet-op-geth-pruned-pebble-hash.tls.certresolver=myresolver} - - ${NO_SSL:-traefik.http.routers.hemi-mainnet-op-geth-pruned-pebble-hash.rule=Host(`$DOMAIN`) && (Path(`/hemi-mainnet`) || Path(`/hemi-mainnet/`))} - - ${NO_SSL:+traefik.http.routers.hemi-mainnet-op-geth-pruned-pebble-hash.rule=Path(`/hemi-mainnet`) || Path(`/hemi-mainnet/`)} - - traefik.http.routers.hemi-mainnet-op-geth-pruned-pebble-hash.middlewares=hemi-mainnet-op-geth-pruned-pebble-hash-stripprefix, ipallowlist + - traefik.http.middlewares.hemi-mainnet-op-geth-pruned-leveldb-hash-stripprefix.stripprefix.prefixes=/hemi-mainnet + - traefik.http.services.hemi-mainnet-op-geth-pruned-leveldb-hash.loadbalancer.server.port=8545 + - ${NO_SSL:-traefik.http.routers.hemi-mainnet-op-geth-pruned-leveldb-hash.entrypoints=websecure} + - ${NO_SSL:-traefik.http.routers.hemi-mainnet-op-geth-pruned-leveldb-hash.tls.certresolver=myresolver} + - ${NO_SSL:-traefik.http.routers.hemi-mainnet-op-geth-pruned-leveldb-hash.rule=Host(`$DOMAIN`) && (Path(`/hemi-mainnet`) || Path(`/hemi-mainnet/`))} + - ${NO_SSL:+traefik.http.routers.hemi-mainnet-op-geth-pruned-leveldb-hash.rule=Path(`/hemi-mainnet`) || Path(`/hemi-mainnet/`)} + - traefik.http.routers.hemi-mainnet-op-geth-pruned-leveldb-hash.middlewares=hemi-mainnet-op-geth-pruned-leveldb-hash-stripprefix, ipallowlist hemi-mainnet-node: image: ${HEMI_NODE_IMAGE:-ghcr.io/hemilabs/op-node}:${HEMI_MAINNET_NODE_VERSION:-ea9fe7b@sha256:7110e3c4c61e495ea0a6621d7ec211ceb7e948e25c648b05bd51fcc557ad06bc} ports: - - 17511:17511 - - 17511:17511/udp + - 19669:19669 + - 19669:19669/udp environment: - OP_NODE_BSS_WS="http://hemi-mainnet-relay:8081/v1/ws" - OP_NODE_L1_BEACON=${ETHEREUM_MAINNET_BEACON_REST} @@ -149,8 +150,8 @@ services: - OP_NODE_P2P_ADVERTISE_IP=${IP} - OP_NODE_P2P_BOOTNODES=enr:-J64QACnJ0giPmPXowNCHP-FDleMMbDqYg5nuLABYfJeYbP9OA6_fZtvCsTbAwvlPD8_C6ZSXEk1-XPabDBwD8UTyNCGAZMxdy4tgmlkgnY0gmlwhCINopiHb3BzdGFja4Tn0AIAiXNlY3AyNTZrMaED22EOmUryrNnFOwq6Ve1Hpw5CMFz_TnhIkVS4Sq8JhkmDdGNwgiMrg3VkcIKjLg,enr:-J64QA20VNMfLMtbSuHYmQH2I-xaqT4-9g7lqO-VHr0fFvtSB7QybJ_7W5fuEjLAa6kh82fGLjRUdZE0hW0pfVBcxP6GAZMxdwfngmlkgnY0gmlwhCJaFfaHb3BzdGFja4Tn0AIAiXNlY3AyNTZrMaEDjt3C-gv87B5rWa5M52WUFGy16mjQvFsC7OgPkqu-rn-DdGNwgiMrg3VkcIKRXQ,enr:-J64QLQyh3lXjQLzfCbfNw0DUb4A0OEcTLmVGexMbK-2jjCtHOIlRnDqLuedQ0orNHt7zmsILELYi4ozg-0bQzc34F-GAZMxdxNogmlkgnY0gmlwhCINq4uHb3BzdGFja4Tn0AIAiXNlY3AyNTZrMaED1NV9w0EmnMXBNRnDWj6kdqzE6_4HigHopeu3ewQTwouDdGNwgiMrg3VkcIK1Iw,enr:-J64QNPfOEViWkN7U_ul5Zhw_mc5_Hta92eUufrgu6oTqSMzRsqCje-P0vPrOQ9XjVIk4VP7mmFVP6qoTrtkIwvwUV2GAZMxdv4zgmlkgnY0gmlwhCJb2HmHb3BzdGFja4Tn0AIAiXNlY3AyNTZrMaEDYAidV8rzABKrKAL9jwP1aoi3wj-GtuML4FKtUDOgzCGDdGNwgiMrg3VkcILijg,enr:-J64QFalFr9Y4r9v8Svh7XFwerJeLTRnfTixfCy_NZw3OTMVZL_dSAvcZ6JIeK0JAZf6-PU3YknV9m9Jd5V5WlnqHKWGAZMxdxT4gmlkgnY0gmlwhCKNlBOHb3BzdGFja4Tn0AIAiXNlY3AyNTZrMaECI1jqAzkQ0JRkwL-UBP2TBUfUdLyTaqAXtey82CTysdCDdGNwgiMrg3VkcILOyg - OP_NODE_P2P_LISTEN_IP=0.0.0.0 - - OP_NODE_P2P_LISTEN_TCP_PORT=17511 - - OP_NODE_P2P_LISTEN_UDP_PORT=17511 + - OP_NODE_P2P_LISTEN_TCP_PORT=19669 + - OP_NODE_P2P_LISTEN_UDP_PORT=19669 - OP_NODE_P2P_STATIC=/ip4/34.90.21.246/tcp/9003/p2p/16Uiu2HAmNGgNTgiFBAqH58aCT3iXWMnetYMtQgH21Ydjq2R7QRbt,/ip4/34.13.162.152/tcp/9003/p2p/16Uiu2HAm33YRmCya94zRXddxaWj25QAXW5MhuJkaEvfMLXkB4GCK,/ip4/34.13.171.139/tcp/9003/p2p/16Uiu2HAm5d71wTbQPkBA3VW9suge2afCKtrGdk7UapRHR4va8jTY,/ip4/34.91.216.121/tcp/9003/p2p/16Uiu2HAmK7s7F1ALmtXKH3LxeEENstqw8jiDzUtifasS4LkUKGVE,/ip4/34.141.148.19/tcp/9003/p2p/16Uiu2HAkwoetK83q3WNRQ4t4eV8B3DosnwcFqd9VHxz24ZZzzEgo - OP_NODE_ROLLUP_CONFIG=/config/rollup.json - OP_NODE_ROLLUP_LOAD_PROTOCOL_VERSIONS=true @@ -175,19 +176,23 @@ services: - prometheus-scrape.port=7300 - prometheus-scrape.path=/metrics - traefik.enable=true - - traefik.http.middlewares.hemi-mainnet-op-geth-pruned-pebble-hash-node-stripprefix.stripprefix.prefixes=/hemi-mainnet/node - - traefik.http.services.hemi-mainnet-op-geth-pruned-pebble-hash-node.loadbalancer.server.port=8547 - - ${NO_SSL:-traefik.http.routers.hemi-mainnet-op-geth-pruned-pebble-hash-node.entrypoints=websecure} - - ${NO_SSL:-traefik.http.routers.hemi-mainnet-op-geth-pruned-pebble-hash-node.tls.certresolver=myresolver} - - ${NO_SSL:-traefik.http.routers.hemi-mainnet-op-geth-pruned-pebble-hash-node.rule=Host(`$DOMAIN`) && PathPrefix(`hemi-mainnet/node`)} - - ${NO_SSL:+traefik.http.routers.hemi-mainnet-op-geth-pruned-pebble-hash-node.rule=PathPrefix(`hemi-mainnet/node`)} - - traefik.http.routers.hemi-mainnet-op-geth-pruned-pebble-hash-node.middlewares=hemi-mainnet-op-geth-pruned-pebble-hash-node-stripprefix, ipallowlist + - traefik.http.middlewares.hemi-mainnet-op-geth-pruned-leveldb-hash-node-stripprefix.stripprefix.prefixes=/hemi-mainnet/node + - traefik.http.services.hemi-mainnet-op-geth-pruned-leveldb-hash-node.loadbalancer.server.port=8547 + - ${NO_SSL:-traefik.http.routers.hemi-mainnet-op-geth-pruned-leveldb-hash-node.entrypoints=websecure} + - ${NO_SSL:-traefik.http.routers.hemi-mainnet-op-geth-pruned-leveldb-hash-node.tls.certresolver=myresolver} + - ${NO_SSL:-traefik.http.routers.hemi-mainnet-op-geth-pruned-leveldb-hash-node.rule=Host(`$DOMAIN`) && PathPrefix(`hemi-mainnet/node`)} + - ${NO_SSL:+traefik.http.routers.hemi-mainnet-op-geth-pruned-leveldb-hash-node.rule=PathPrefix(`hemi-mainnet/node`)} + - traefik.http.routers.hemi-mainnet-op-geth-pruned-leveldb-hash-node.middlewares=hemi-mainnet-op-geth-pruned-leveldb-hash-node-stripprefix, ipallowlist hemi-mainnet-relay: image: ${HEMI_BSS_IMAGE:-hemilabs/bssd}:${HEMI_MAINNET_BSS_VERSION:-1.6.3} ports: - - 22511:22511 - - 22511:22511/udp + - 24669:24669 + - 24669:24669/udp + expose: + - 8081 + environment: + - BSS_ADDRESS=:8081 restart: unless-stopped networks: - chains @@ -199,7 +204,7 @@ services: - prometheus-scrape.enabled=false volumes: - hemi-mainnet-op-geth-pruned-pebble-hash: + hemi-mainnet-op-geth-pruned-leveldb-hash: x-upstreams: - id: $${ID}