diff --git a/p2p/discover/table.go b/p2p/discover/table.go index b6c35aaaa9..b4831a8cdd 100644 --- a/p2p/discover/table.go +++ b/p2p/discover/table.go @@ -428,6 +428,12 @@ func (tab *Table) doRefresh(done chan struct{}) { // (hopefully) still alive. tab.loadSeedNodes() + // If the table is empty, we cannot perform any lookups. + if tab.len() == 0 { + log.Debug("doRefresh called, but no nodes to start from") + return + } + // Run self lookup to discover new neighbor nodes. tab.net.lookupSelf()