Skip to content

Commit

Permalink
(BIDS-2510) using the minipool contract address with the most recent …
Browse files Browse the repository at this point in the history
…update (#2577)
  • Loading branch information
remoterami authored Sep 28, 2023
1 parent 0d49ac4 commit 172bdcb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion handlers/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,9 @@ func Validator(w http.ResponseWriter, r *http.Request) {
FROM validators
LEFT JOIN rocketpool_minipools rplm ON rplm.pubkey = validators.pubkey
LEFT JOIN rocketpool_nodes rpln ON rplm.node_address = rpln.address
WHERE validators.validatorindex = $1`, index)
WHERE validators.validatorindex = $1
ORDER BY rplm.status_time DESC
LIMIT 1`, index)
if err == nil && (validatorPageData.Rocketpool.MinipoolAddress != nil || validatorPageData.Rocketpool.NodeAddress != nil) {
validatorPageData.IsRocketpool = true
if utils.Config.Chain.Config.DepositChainID == 1 {
Expand Down

0 comments on commit 172bdcb

Please sign in to comment.