add wait discv5 table

This commit is contained in:
Chen Kai 2024-10-23 16:52:52 +08:00
parent cfbffc571f
commit 8563ce1d52

View file

@ -261,7 +261,8 @@ func (p *PortalProtocol) Start() error {
go p.offerWorker()
}
// wait for the routing table to be initialized
// wait for both initialization processes to complete
<-p.DiscV5.tab.initDone
<-p.table.initDone
return nil
}