Skip to content

Commit 8563ce1

Browse files
committed
add wait discv5 table
1 parent cfbffc5 commit 8563ce1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

p2p/discover/portal_protocol.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,8 @@ func (p *PortalProtocol) Start() error {
261261
go p.offerWorker()
262262
}
263263

264-
// wait for the routing table to be initialized
264+
// wait for both initialization processes to complete
265+
<-p.DiscV5.tab.initDone
265266
<-p.table.initDone
266267
return nil
267268
}

0 commit comments

Comments
 (0)