Skip to content

Commit

Permalink
fix validator slot view for SSLE networks (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Aug 28, 2023
1 parent 31efa9c commit 80e44ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ func GetAssignedBlocks(proposer uint64, firstSlot uint64, offset uint64, limit u
fmt.Fprintf(&sql, `
FROM slot_assignments
LEFT JOIN blocks ON blocks.slot = slot_assignments.slot
WHERE slot_assignments.proposer = $1 AND slot_assignments.slot < $2 `+orphanedLimit+`
WHERE (slot_assignments.proposer = $1 OR blocks.proposer = $1) AND slot_assignments.slot < $2 `+orphanedLimit+`
ORDER BY slot_assignments.slot DESC
LIMIT $3 OFFSET $4
`)
Expand Down

0 comments on commit 80e44ed

Please sign in to comment.