Skip to content

Commit

Permalink
fix(db): remove old columns from query
Browse files Browse the repository at this point in the history
  • Loading branch information
blombern committed Jul 23, 2024
1 parent 403a924 commit a4802e5
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 @@ -477,7 +477,7 @@ func (s *DatabaseService) UpsertBlockBuilderEntryAfterSubmission(lastSubmission
}

func (s *DatabaseService) GetBlockBuilders() ([]*BlockBuilderEntry, error) {
query := `SELECT id, inserted_at, builder_pubkey, description, is_high_prio, is_blacklisted, is_optimistic, collateral, builder_id, last_submission_id, last_submission_slot, num_submissions_total, num_submissions_simerror, num_sent_getpayload FROM ` + vars.TableBlockBuilder + ` ORDER BY id ASC;`
query := `SELECT id, inserted_at, builder_pubkey, description, is_high_prio, is_blacklisted, is_optimistic, collateral, builder_id, num_sent_getpayload FROM ` + vars.TableBlockBuilder + ` ORDER BY id ASC;`
entries := []*BlockBuilderEntry{}
err := s.DB.Select(&entries, query)
return entries, err
Expand Down

0 comments on commit a4802e5

Please sign in to comment.