From 568159d83603703d27292ab7d5d37f4be5b267a1 Mon Sep 17 00:00:00 2001 From: b0a7 <127276179+b0a7@users.noreply.github.com> Date: Thu, 8 Aug 2024 16:52:27 -0400 Subject: [PATCH 1/2] pass fee recipient --- .env.sample | 3 +++ .env.sample.mainnet | 3 +++ examples/geth_teku_lighthouse.yml | 1 + examples/lighthouse/run.sh | 2 +- lodestar/run.sh | 3 ++- 5 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.env.sample b/.env.sample index 10ab1c0..9fa3cc2 100644 --- a/.env.sample +++ b/.env.sample @@ -7,6 +7,9 @@ # Enables builder api for lodestar VC and charon services. #BUILDER_API_ENABLED= +# address to be sent to the validator client to be used as default recipient of block fees +#FEE_RECIPIENT=0xYourAddress + ######### Nethermind Config ######### # Nethermind docker container image version, e.g. `latest` or `1.25.3`. diff --git a/.env.sample.mainnet b/.env.sample.mainnet index 4051b1b..c3cf8cd 100644 --- a/.env.sample.mainnet +++ b/.env.sample.mainnet @@ -7,6 +7,9 @@ NETWORK=mainnet # Enables builder api for lodestar VC and charon services. #BUILDER_API_ENABLED= +# address to be sent to the validator client to be used as default recipient of block fees +#FEE_RECIPIENT=0xYourAddress + ######### Nethermind Config ######### # Nethermind docker container image version, e.g. `latest` or `1.25.3`. diff --git a/examples/geth_teku_lighthouse.yml b/examples/geth_teku_lighthouse.yml index 54add70..16cb2f2 100644 --- a/examples/geth_teku_lighthouse.yml +++ b/examples/geth_teku_lighthouse.yml @@ -130,6 +130,7 @@ services: LIGHTHOUSE_BEACON_NODE_ADDRESS: http://charon:3600 NETWORK: ${NETWORK:-holesky} BUILDER_API_ENABLED: ${BUILDER_API_ENABLED:-false} + FEE_RECIPIENT: ${FEE_RECIPIENT:-0x0000000000000000000000000000000000000000} volumes: - ./lighthouse/run.sh:/opt/lighthouse/run.sh - ../.charon/validator_keys:/opt/charon/validator_keys diff --git a/examples/lighthouse/run.sh b/examples/lighthouse/run.sh index 4f57bb3..0e0bfed 100755 --- a/examples/lighthouse/run.sh +++ b/examples/lighthouse/run.sh @@ -24,7 +24,7 @@ done echo "Starting lighthouse validator client for ${NODE}" exec lighthouse --network "${NETWORK}" validator \ --beacon-nodes ${LIGHTHOUSE_BEACON_NODE_ADDRESS} \ - --suggested-fee-recipient "0x0000000000000000000000000000000000000000" \ + --suggested-fee-recipient "${FEE_RECIPIENT}" \ --metrics \ --metrics-address "0.0.0.0" \ --metrics-allow-origin "*" \ diff --git a/lodestar/run.sh b/lodestar/run.sh index 11a834a..95a3b39 100755 --- a/lodestar/run.sh +++ b/lodestar/run.sh @@ -31,4 +31,5 @@ exec node /usr/app/packages/cli/bin/lodestar validator \ --builder="$BUILDER_API_ENABLED" \ --builder.selection="$BUILDER_SELECTION" \ --distributed \ - --useProduceBlockV3=true + --useProduceBlockV3=true \ + --suggestedFeeRecipient ${FEE_RECIPIENT} From 95401a40e43adcc23d3de23dc13af8f838291a3b Mon Sep 17 00:00:00 2001 From: b0a7 <127276179+b0a7@users.noreply.github.com> Date: Thu, 8 Aug 2024 16:54:32 -0400 Subject: [PATCH 2/2] add missing docker-compose for Lodestar --- docker-compose.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/docker-compose.yml b/docker-compose.yml index 0327130..416fb33 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -109,6 +109,7 @@ services: BEACON_NODE_ADDRESS: http://charon:3600 NETWORK: ${NETWORK:-holesky} BUILDER_API_ENABLED: ${BUILDER_API_ENABLED:-false} + FEE_RECIPIENT: ${FEE_RECIPIENT:-0x0000000000000000000000000000000000000000} volumes: - ./lodestar/run.sh:/opt/lodestar/run.sh - .charon/validator_keys:/home/charon/validator_keys