Skip to content

Commit

Permalink
fix(dashboard): improve withdrawal query performance
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbitfly committed Dec 14, 2024
1 parent fa83d6e commit e846d8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/pkg/api/data_access/vdb_withdrawals.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func (d *DataAccessService) GetValidatorDashboardWithdrawals(ctx context.Context
w.amount
FROM
blocks_withdrawals w
INNER JOIN blocks b ON w.block_slot = b.slot AND w.block_root = b.blockroot AND b.status = '1'
INNER JOIN blocks b ON w.block_root = b.blockroot AND b.status = '1'
`

// Limit the query to relevant validators
Expand Down

0 comments on commit e846d8f

Please sign in to comment.