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/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 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}