diff --git a/README.md b/README.md index fbbb691..9f4bf42 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Erigon Gnosis Chain +# Erigon Sepolia Testnet Archive Node Client -## DAppNodePackage for the Erigon Gnosis Chain Execution Layer Client +## DAppNodePackage for the Erigon Gnosis Chain Execution Layer Client with embedded Consensus Layer ![avatar](avatar-default.png) diff --git a/avatar-default.png b/avatar-default.png index c84a72a..dc4a8ab 100644 Binary files a/avatar-default.png and b/avatar-default.png differ diff --git a/dappnode_package.json b/dappnode_package.json index 90b599f..180497b 100644 --- a/dappnode_package.json +++ b/dappnode_package.json @@ -1,7 +1,7 @@ { - "name": "erigon-gnosis.dnp.dappnode.eth", + "name": "sepolia-erigon.dnp.dappnode.eth", "version": "0.1.0", - "shortDescription": "Modular Ethereum client on the efficiency frontier, written in Go, for the Gnosis Chain network", + "shortDescription": "Modular Ethereum client on the efficiency frontier, written in Go, for the Sepolia Testnet", "description": "Erigon is a next generation Ethereum client that introduces several new concepts:\n\n* A modular client design, enabling parallelized development of the client\n\n* New (`flat`) model of storing Ethereum state, allowing a lower disk footprint\n\n* Preprocessing of data outside of the storage engine, making database write operations faster by a magnitude\n\n* Staged synchronization technique, allowing very fast synchronization", "upstreamVersion": "v2.54.0", "upstreamRepo": "ledgerwatch/erigon", @@ -17,11 +17,11 @@ "Voss (https://github.com/alexpeterson91)" ], "links": { - "api": "http://erigon-gnosis.dappnode:8545", - "apiEngine": "http://erigon-gnosis.dappnode:8551", + "api": "http://sepolia-erigon.dappnode:8545", + "apiEngine": "http://sepolia-erigon.dappnode:8551", "homepage": "https://github.com/ledgerwatch/erigon" }, - "mainService": "erigon", + "mainService": "sepolia-erigon", "license": "GPL-3.0", "requirements": { "minimumDappnodeVersion": "0.2.68" @@ -35,16 +35,10 @@ }, "exposable": [ { - "name": "Erigon Gnosis Chain JSON RPC", - "description": "JSON RPC endpoint for Erigon Gnosis Chain (HTTPS & WSS)", - "serviceName": "erigon", + "name": "Sepolia Erigon JSON RPC", + "description": "JSON RPC endpoint for Sepolia Erigon (HTTPS & WSS)", + "serviceName": "sepolia-erigon", "port": 8545 } - ], - "globalEnvs": [ - { - "envs": ["CONSENSUS_CLIENT_GNOSIS"], - "services": ["erigon"] - } ] } diff --git a/docker-compose.yml b/docker-compose.yml index d860c2e..8109b26 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,14 +7,18 @@ services: args: UPSTREAM_VERSION: v2.54.0 ports: - - "31305:31305/tcp" - - "31305:31305/udp" - - "42169:42169/tcp" - - "42169:42169/udp" + - "35416:35416/tcp" + - "35416:35416/udp" + - "47282:47282/tcp" + - "47282:47282/udp" + - "9113:9113/udp" + - "9115:9115/tcp" volumes: - - "data:/home/erigon-gnosis/.local/share" + - "data:/home/sepolia-erigon/.local/share" environment: - P2P_PORT: 31305 + P2P_PORT: 35416 + CAPLIN_P2P_PORT: 9113 + CAPLIN_P2P_TCP_PORT: 9115 EXTRA_OPTS: "--http.api=eth,erigon,web3,net,debug,trace" restart: unless-stopped ulimits: diff --git a/entrypoint.sh b/entrypoint.sh index b20b788..dc2e9c6 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,50 +1,24 @@ #!/bin/sh -case "$_DAPPNODE_GLOBAL_CONSENSUS_CLIENT_GNOSIS" in -"gnosis-beacon-chain-prysm.dnp.dappnode.eth") - echo "Using gnosis-beacon-chain-prysm.dnp.dappnode.eth" - JWT_PATH="/security/prysm/jwtsecret.hex" - ;; -"lighthouse-gnosis.dnp.dappnode.eth") - echo "Using lighthouse-gnosis.dnp.dappnode.eth" - JWT_PATH="/security/lighthouse/jwtsecret.hex" - ;; -"nimbus-gnosis.dnp.dappnode.eth") - echo "Using nimbus-gnosis.dnp.dappnode.eth" - JWT_PATH="/security/nimbus/jwtsecret.hex" - ;; -"teku-gnosis.dnp.dappnode.eth") - echo "Using teku-gnosis.dnp.dappnode.eth" - JWT_PATH="/security/teku/jwtsecret.hex" - ;; -"lodestar-gnosis.dnp.dappnode.eth") - echo "Using lodestar-gnosis.dnp.dappnode.eth" - JWT_PATH="/security/lodestar/jwtsecret.hex" - ;; -*) - echo "Using default" - JWT_PATH="/security/default/jwtsecret.hex" - ;; -esac -# Print the jwt to the dappmanager -JWT=$(cat $JWT_PATH) -curl -X POST "http://my.dappnode/data-send?key=jwt&data=${JWT}" - -DATADIR="/home/erigon-gnosis/.local/share" +DATADIR="/home/sepolia-erigon/.local/share" ########## # Erigon # ########## exec erigon --datadir=${DATADIR} \ - --chain=gnosis \ + --chain=sepolia \ --http.addr=0.0.0.0 \ --http.port=8545 \ --http.vhosts=* \ --http.corsdomain=* \ --ws \ --private.api.addr=0.0.0.0:9090 \ + --internalcl \ + --lightclient.discovery.addr=0.0.0.0 \ + --lightclient.discovery.port=${CAPLIN_P2P_PORT} \ + --lightclient.discovery.tcpport=${CAPLIN_P2P_TCP_PORT} \ --metrics \ --metrics.addr=0.0.0.0 \ --metrics.port=6060 \ @@ -52,8 +26,7 @@ exec erigon --datadir=${DATADIR} \ --pprof.addr=0.0.0.0 \ --pprof.port=6061 \ --port=${P2P_PORT} \ - --authrpc.jwtsecret=${JWT_PATH} \ - --authrpc.addr=0.0.0.0 \ - --authrpc.vhosts=* \ - --torrent.port=42169 \ + --torrent.port=47282 \ + --torrent.upload.rate=16mb \ + --torrent.download.rate=32mb \ ${EXTRA_OPTS} diff --git a/prometheus-targets.json b/prometheus-targets.json index d8e3049..3b9376b 100644 --- a/prometheus-targets.json +++ b/prometheus-targets.json @@ -1,12 +1,12 @@ [ { "labels": { - "package": "erigon-gnosis.dnp.dappnode.eth", - "service": "erigon", + "package": "sepolia-erigon.dnp.dappnode.eth", + "service": "sepolia-erigon", "__metrics_path__": "/debug/metrics/prometheus" }, "targets": [ - "erigon.erigon-gnosis.dappnode:6060" + "sepolia-erigon.sepolia-erigon.dappnode:6060" ] } ] diff --git a/releases.json b/releases.json index 4a48c38..8b13789 100644 --- a/releases.json +++ b/releases.json @@ -1,8 +1 @@ -{ - "0.1.0": { - "hash": "/ipfs/QmWbnmjEBKfyiDajhGpHxvnd9Jn6qDUXyg6HmW7hL9FsU2", - "uploadedTo": { - "dappnode": "Tue, 29 Nov 2022 23:18:57 GMT" - } - } -} +