diff --git a/handlers/validator.go b/handlers/validator.go index 8826eca0..bc1e12cd 100644 --- a/handlers/validator.go +++ b/handlers/validator.go @@ -457,16 +457,9 @@ func buildValidatorPageData(validatorIndex uint64, tabView string) (*models.Vali for _, elWithdrawal := range dbElWithdrawals { elWithdrawalData := &models.ValidatorPageDataWithdrawal{ SourceAddr: elWithdrawal.SourceAddress(), - PublicKey: elWithdrawal.ValidatorPubkey(), Amount: elWithdrawal.Amount(), } - if validatorIndex := elWithdrawal.ValidatorIndex(); validatorIndex != nil { - elWithdrawalData.ValidatorValid = true - elWithdrawalData.ValidatorIndex = *validatorIndex - elWithdrawalData.ValidatorName = services.GlobalBeaconService.GetValidatorName(*validatorIndex) - } - if request := elWithdrawal.Request; request != nil { elWithdrawalData.IsIncluded = true elWithdrawalData.SlotNumber = request.SlotNumber diff --git a/templates/validator/consolidationRequests.html b/templates/validator/consolidationRequests.html index 2ac8355f..c7d97c9a 100644 --- a/templates/validator/consolidationRequests.html +++ b/templates/validator/consolidationRequests.html @@ -29,7 +29,7 @@ {{ formatRecentTimeShort $request.Time }}
- {{ ethAddressLink $request.SourceAddr }} + {{ ethAddressLink $request.SourceAddr }}
@@ -37,7 +37,7 @@ {{- if $request.SourceValidatorValid }} - {{ formatValidator $request.SourceValidatorIndex $request.SourceValidatorName }} + {{ formatValidatorWithIndex $request.SourceValidatorIndex $request.SourceValidatorName }} {{- else }}
0x{{ printf "%x" $request.SourcePublicKey }} @@ -49,7 +49,7 @@ {{- if $request.TargetValidatorValid }} - {{ formatValidator $request.TargetValidatorIndex $request.TargetValidatorName }} + {{ formatValidatorWithIndex $request.TargetValidatorIndex $request.TargetValidatorName }} {{- else }}
0x{{ printf "%x" $request.TargetPublicKey }} diff --git a/templates/validator/validator.html b/templates/validator/validator.html index 7d8019d6..892f87fd 100644 --- a/templates/validator/validator.html +++ b/templates/validator/validator.html @@ -1,7 +1,7 @@ {{ define "page" }}
-

Validator {{ formatValidatorWithIndex .Index .Name }}

+

Validator {{ formatValidatorNameWithIndex .Index .Name }}