mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
add wait discv5 table
This commit is contained in:
parent
cfbffc571f
commit
8563ce1d52
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue