Skip to content

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Oct 8, 2024
1 parent dfe4b80 commit eb46ea3
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions db/slots.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,22 +391,6 @@ func GetHighestRootBeforeSlot(slot uint64, withOrphaned bool) []byte {
return result
}

func GetFirstRootAfterSlot(slot uint64, withOrphaned bool) []byte {
var result []byte
statusFilter := ""
if !withOrphaned {
statusFilter = "AND status != 2"
}

err := ReaderDb.Get(&result, `
SELECT root FROM slots WHERE slot >= $1 `+statusFilter+` AND status != 0 ORDER BY slot ASC LIMIT 1
`, slot)
if err != nil {
return nil
}
return result
}

func GetSlotAssignment(slot uint64) uint64 {
proposer := uint64(math.MaxInt64)
err := ReaderDb.Get(&proposer, `
Expand Down

0 comments on commit eb46ea3

Please sign in to comment.