validator/exit: Print other testnet beaconcha.in URLs (#13610)

This commit is contained in:
Preston Van Loon 2024-02-12 13:36:58 -06:00 committed by GitHub
parent 06a5548424
commit c4c6b47d9b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -154,9 +154,14 @@ func displayExitInfo(rawExitedKeys [][]byte, trimmedExitedKeys []string) {
urlFormattedPubKeys := make([]string, len(rawExitedKeys))
for i, key := range rawExitedKeys {
var baseUrl string
if params.BeaconConfig().ConfigName == params.PraterName || params.BeaconConfig().ConfigName == params.GoerliName {
switch params.BeaconConfig().ConfigName {
case params.PraterName, params.GoerliName:
baseUrl = "https://goerli.beaconcha.in/validator/"
} else {
case params.HoleskyName:
baseUrl = "https://holesky.beaconcha.in/validator/"
case params.SepoliaName:
baseUrl = "https://sepolia.beaconcha.in/validator/"
default:
baseUrl = "https://beaconcha.in/validator/"
}
// Remove '0x' prefix