diff --git a/persist/sqlite/addresses.go b/persist/sqlite/addresses.go index 26b3a8be..f63a47c0 100644 --- a/persist/sqlite/addresses.go +++ b/persist/sqlite/addresses.go @@ -134,6 +134,8 @@ func (st *Store) Hosts(pks []types.PublicKey) (result []explorer.Host, err error } // HostsForScanning returns hosts ordered by the transaction they were created in. +// Note that only the PublicKey, NetAddress, and V2NetAddresses fields are +// populated. func (s *Store) HostsForScanning(maxLastScan, minLastAnnouncement time.Time, offset, limit uint64) (result []explorer.Host, err error) { err = s.transaction(func(tx *txn) error { rows, err := tx.Query(`SELECT public_key, net_address FROM host_info WHERE last_scan <= ? AND last_announcement >= ? ORDER BY last_scan ASC LIMIT ? OFFSET ?`, encode(maxLastScan), encode(minLastAnnouncement), limit, offset)