Skip to content

Commit

Permalink
remove groub by withdrawal address on validator activity page
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Feb 25, 2024
1 parent 494c2a5 commit d5d66fc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
6 changes: 0 additions & 6 deletions handlers/validators_activity.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"strings"
"time"

"github.com/ethereum/go-ethereum/common"
"github.com/pk910/dora/services"
"github.com/pk910/dora/templates"
"github.com/pk910/dora/types/models"
Expand Down Expand Up @@ -133,11 +132,6 @@ func buildValidatorsActivityPageData(pageIdx uint64, pageSize uint64, sortOrder
case 3:
groupName = services.GlobalBeaconService.GetValidatorName(uint64(vIdx))
groupKey = strings.ToLower(groupName)
case 4:
if validator.Validator.WithdrawalCredentials[0] == 0x01 {
groupName = common.BytesToAddress(validator.Validator.WithdrawalCredentials[12:]).Hex()
groupKey = strings.ToLower(groupName)
}
}

validatorGroup := validatorGroupMap[groupKey]
Expand Down
1 change: 0 additions & 1 deletion templates/validators_activity/validators_activity.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ <h1 class="h4 mb-1 mb-md-0"><i class="fas fa-tachometer mx-2"></i>Validator Acti
<option value="1" {{ if eq .ViewOptionGroupBy 1 }}selected{{ end }}>Validator Indexes (100k)</option>
<option value="2" {{ if eq .ViewOptionGroupBy 2 }}selected{{ end }}>Validator Indexes (10k)</option>
<option value="3" {{ if eq .ViewOptionGroupBy 3 }}selected{{ end }}>Validator Names</option>
<option value="4" {{ if eq .ViewOptionGroupBy 4 }}selected{{ end }}>Withdrawal Address</option>
</select>
</div>
</div>
Expand Down

0 comments on commit d5d66fc

Please sign in to comment.