Skip to content

Commit

Permalink
Merge pull request #1 from dappnode/voss/test-internal-CL-light-client
Browse files Browse the repository at this point in the history
Voss/test internal cl light client
  • Loading branch information
alexpeterson91 authored Dec 6, 2023
2 parents 087ad5c + 485b5ca commit c2ef24e
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 69 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
Binary file modified avatar-default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 8 additions & 14 deletions dappnode_package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -17,11 +17,11 @@
"Voss <[email protected]> (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"
Expand All @@ -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"]
}
]
}
16 changes: 10 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
45 changes: 9 additions & 36 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,59 +1,32 @@
#!/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 \
--pprof \
--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}
6 changes: 3 additions & 3 deletions prometheus-targets.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
]
9 changes: 1 addition & 8 deletions releases.json
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
{
"0.1.0": {
"hash": "/ipfs/QmWbnmjEBKfyiDajhGpHxvnd9Jn6qDUXyg6HmW7hL9FsU2",
"uploadedTo": {
"dappnode": "Tue, 29 Nov 2022 23:18:57 GMT"
}
}
}

0 comments on commit c2ef24e

Please sign in to comment.