Commit 317bc345 authored by David Vorick's avatar David Vorick

make sure all hosts get scanned at least once

parent 460e9256
......@@ -66,6 +66,11 @@ func (hdb *HostDB) load() error {
if err != nil {
hdb.log.Debugln("ERROR: could not insert host while loading:", host.NetAddress)
// Make sure that all hosts have gone through the initial scanning.
if len(host.ScanHistory) < 2 {
hdb.blockHeight = data.BlockHeight
hdb.lastChange = data.LastChange
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment