prysmaticlabs / prysm

Go implementation of Ethereum proof of stake
https://www.offchainlabs.com
GNU General Public License v3.0
3.48k stars 1.03k forks source link

CLI flag to hardcode timestamp for validator registration #11112

Open terencechain opened 2 years ago

terencechain commented 2 years ago

We might need a flag that enables validators to hardcode the timestamp in the registration schema. This may be required for distributed validators to come to a consensus. Today's implementation we are using the current timestamp which will be different on each co-validator.

nisdas commented 2 years ago

This seems like the wrong approach, why do we need to hardcode the timestamp like this ? Why does validator registration require signing a timestamp ?

terencechain commented 2 years ago

For distributed validators, it's important that the signed registration are the same across all "co-validators", current timestamp is likely to never match across multiple validators. The common resolution on other validator clients so far has been to include a -builder-timestamp-override flag that enables the user to hardcode a value. Both teku and lighthouse support this. It is then used for every subsequent re-registration