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

@ -208,7 +208,7 @@ func New(stack *node.Node, config *Config) (*Ethereum, error) {
}
eth.APIBackend.gpo = gasprice.NewOracle(eth.APIBackend, gpoParams)
eth.dialCandidates, err = eth.setupDiscovery(&stack.Config().P2P)
eth.dialCandidates, err = eth.setupDiscovery()
if err != nil {
return nil, err
}