Skip to content

Commit

Permalink
website: require on-chain check complete for top-builder query
Browse files Browse the repository at this point in the history
fixes #36
  • Loading branch information
metachris committed Jun 2, 2024
1 parent 3938ead commit 7369060
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (s *DatabaseService) GetTopBuilders(since, until time.Time, relay string) (
endSlot := timeToSlot(until)

query := `SELECT extra_data, count(extra_data) as blocks FROM (
SELECT distinct(slot), extra_data FROM ` + TableDataAPIPayloadDelivered + ` WHERE slot >= $1 AND slot <= $2`
SELECT distinct(slot), extra_data FROM ` + TableDataAPIPayloadDelivered + ` WHERE value_check IS NOT NULL AND slot >= $1 AND slot <= $2`
if relay != "" {
query += ` AND relay = '` + relay + `'`
}
Expand Down

0 comments on commit 7369060

Please sign in to comment.