This repository has been archived by the owner on Dec 20, 2024. It is now read-only.
forked from alexpeterson91/DAppNodePackage-Besu
-
Notifications
You must be signed in to change notification settings - Fork 3
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 #21 from dappnode/pablo/stakers-ui
Implement stakers UI support
- Loading branch information
Showing
12 changed files
with
88 additions
and
44 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
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/bin/sh | ||
|
||
case "$_DAPPNODE_GLOBAL_CONSENSUS_CLIENT_MAINNET" in | ||
"prysm.dnp.dappnode.eth") | ||
echo "Using prysm.dnp.dappnode.eth" | ||
JWT_PATH="/security/prysm/jwtsecret.hex" | ||
;; | ||
"lighthouse.dnp.dappnode.eth") | ||
echo "Using lighthouse.dnp.dappnode.eth" | ||
JWT_PATH="/security/lighthouse/jwtsecret.hex" | ||
;; | ||
"teku.dnp.dappnode.eth") | ||
echo "Using teku.dnp.dappnode.eth" | ||
JWT_PATH="/security/teku/jwtsecret.hex" | ||
;; | ||
"nimbus.dnp.dappnode.eth") | ||
echo "Using nimbus.dnp.dappnode.eth" | ||
JWT_PATH="/security/nimbus/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}" | ||
|
||
exec besu --rpc-ws-host='0.0.0.0' \ | ||
--rpc-ws-enabled=$WS_ENABLED \ | ||
--rpc-http-host='0.0.0.0' \ | ||
--rpc-http-enabled=true \ | ||
--host-allowlist=* \ | ||
--rpc-http-cors-origins=* \ | ||
--engine-rpc-port=8551 \ | ||
--engine-host-allowlist=* \ | ||
--engine-jwt-secret=$JWT_PATH \ | ||
--engine-rpc-enabled=true \ | ||
--data-storage-format=$STORAGE_FORMAT \ | ||
--metrics-enabled \ | ||
--metrics-host='0.0.0.0' \ | ||
--data-path=/var/lib/besu \ | ||
--sync-mode=$SYNC_MODE \ | ||
--rpc-http-max-active-connections=$MAX_HTTP_CONNECTIONS \ | ||
--p2p-port=$P2P_PORT \ | ||
$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 |
---|---|---|
@@ -0,0 +1 @@ | ||
7ad9cfdec75eceb662f5e48f5765701c17f51a5233a60fbcfa5f9e495fa99d15 |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
7ad9cfdec75eceb662f5e48f5765701c17f51a5233a60fbcfa5f9e495fa99d16 |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
7ad9cfdec75eceb662f5e48f5765701c17f51a5233a60fbcfa5f9e495fa99d17 |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
7ad9cfdec75eceb662f5e48f5765701c17f51a5233a60fbcfa5f9e495fa99d19 |
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
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,10 +1,10 @@ | ||
## Besu (Execution Client) | ||
|
||
Welcome to the Merged Besu Ethereum Mainnet Consensus Layer Client | ||
Welcome to the Merged Besu Ethereum Mainnet Execution Layer Client | ||
|
||
There are now two RPC APIs in Execution Clients: | ||
|
||
1. Querying API `http://besu.dappnode:8545`. Use this endpoint to query transactions on your node and connect to it with your web3 wallet. | ||
2. Engine API `http://besu.dappnode:8551`. Use this endpoint to connect your Beacon Chain (Consensus Layer) client. | ||
1. Querying API `http://besu.public.dappnode:8545`. Use this endpoint to query transactions on your node and connect to it with your web3 wallet. | ||
2. Engine API `http://besu.public.dappnode:8551`. Use this endpoint to connect your Beacon Chain (Consensus Layer) client. | ||
|
||
If your Execution Client is not connected to a Consensus Layer client, you won't be able to keep it synced, nor use it to query the blockchain, nor will you be able to connect your wallet to it! |
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,10 @@ | ||
[ | ||
{ | ||
"labels": { | ||
"package": "besu.dnp.dappnode.eth", | ||
"service": "node.besu.dappnode", | ||
"__metrics_path__": "/metrics" | ||
}, | ||
"targets": [ | ||
"node.besu.dnp.dappnode:9545" | ||
] | ||
} | ||
{ | ||
"labels": { | ||
"package": "besu.public.dappnode.eth", | ||
"service": "node.besu.dappnode", | ||
"__metrics_path__": "/metrics" | ||
}, | ||
"targets": ["node.besu.public.dappnode:9545"] | ||
} | ||
] |
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