mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
swarm/network: Hive - do not notify peer if discovery is disabled
This commit is contained in:
parent
01371469e6
commit
6fbdcb27f0
2 changed files with 1 additions and 2 deletions
|
|
@ -165,8 +165,8 @@ func (h *Hive) Run(p *BzzPeer) error {
|
|||
// otherwise just send depth to new peer
|
||||
dp.NotifyDepth(depth)
|
||||
}
|
||||
}
|
||||
NotifyPeer(p.BzzAddr, h.Kademlia)
|
||||
}
|
||||
defer h.Off(dp)
|
||||
return dp.Run(dp.HandleMsg)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,7 +33,6 @@ func TestWaitTillHealthy(t *testing.T) {
|
|||
"bzz": func(ctx *adapters.ServiceContext, b *sync.Map) (node.Service, func(), error) {
|
||||
addr := network.NewAddr(ctx.Config.Node())
|
||||
hp := network.NewHiveParams()
|
||||
hp.Discovery = false
|
||||
config := &network.BzzConfig{
|
||||
OverlayAddr: addr.Over(),
|
||||
UnderlayAddr: addr.Under(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue