mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-10 05:53:46 +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()
|
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
|
<-p.table.initDone
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue