Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eth2.0: Prevent from running more than 1 validator #913

Closed
pablomendezroyo opened this issue Oct 28, 2021 · 1 comment
Closed

Eth2.0: Prevent from running more than 1 validator #913

pablomendezroyo opened this issue Oct 28, 2021 · 1 comment
Labels
ethereum Tasks related to the dappmanager core functionality Ethereum P2 Worth doing eventually, no rush

Comments

@pablomendezroyo
Copy link
Contributor

pablomendezroyo commented Oct 28, 2021

Context

Due to the upcoming Ethereum consensus multiclient support on DAppNode there must be some restrictions to do not allow to run more than 1 Ethereum consensus validator at the same time, otherwise, it could lead to slashing.

Restrictions to avoid running two Eth2.0 validators at the same time

  • Add the same bind port to the validator docker-compose.yml: this would prevent from running the same docker container on the host due to Docker internal restrictions (It will throw the error Bind for 0.0.0.0:XXXX failed: port is already allocated)
  • Use docker tagging method for Eth2 packages and have a better track of them
  • Allow installing and syncing the beacon chain of any other Eth2.0 client: this would prepare everything before switching the Eth2.0 validator
  • Add a restart policy of never when switching Eth2 client
  • Use of slashing protection data OR add a delay of 20 minutes before switching the consensus validator: this restriction should be enough to avoid slashing and penalties.

Depends on dappnode/DAppNode#329

@dapplion dapplion changed the title ETH2: Prevent from running more than 1 validator Eth2.0: Prevent from running more than 1 validator Oct 28, 2021
@dapplion dapplion removed their assignment Jul 11, 2022
@pablomendezroyo pablomendezroyo added P2 Worth doing eventually, no rush ethereum Tasks related to the dappmanager core functionality Ethereum labels Nov 10, 2022
@pablomendezroyo pablomendezroyo removed their assignment Nov 10, 2022
@pablomendezroyo
Copy link
Contributor Author

Already handled with web3signer and global envs to only listen requests from selected clients

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ethereum Tasks related to the dappmanager core functionality Ethereum P2 Worth doing eventually, no rush
Projects
None yet
Development

No branches or pull requests

2 participants