forked from dappnode/DAppNodePackage-Gnosis-Chain-Erigon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from dappnode/voss/test-internal-CL-light-client
Voss/test internal cl light client
- Loading branch information
Showing
7 changed files
with
33 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
|
@@ -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" | ||
|
@@ -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"] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
|