les: fix nodiscover option (#21906)

This commit is contained in:
Felföldi Zsolt
2020-12-01 10:03:41 +01:00
committed by GitHub
parent e7db1dbc96
commit a2795c8055
5 changed files with 9 additions and 9 deletions

View File

@ -112,7 +112,7 @@ func New(stack *node.Node, config *eth.Config) (*LightEthereum, error) {
}
peers.subscribe((*vtSubscription)(leth.valueTracker))
dnsdisc, err := leth.setupDiscovery(&stack.Config().P2P)
dnsdisc, err := leth.setupDiscovery()
if err != nil {
return nil, err
}