mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
mobile: add missing NoDiscovery option
This commit is contained in:
parent
087d06f836
commit
8af4bfa295
1 changed files with 1 additions and 0 deletions
|
|
@ -114,6 +114,7 @@ func NewNode(datadir string, config *NodeConfig) (stack *Node, _ error) {
|
||||||
DataDir: datadir,
|
DataDir: datadir,
|
||||||
KeyStoreDir: filepath.Join(datadir, "keystore"), // Mobile should never use internal keystores!
|
KeyStoreDir: filepath.Join(datadir, "keystore"), // Mobile should never use internal keystores!
|
||||||
P2P: p2p.Config{
|
P2P: p2p.Config{
|
||||||
|
NoDiscovery: true,
|
||||||
DiscoveryV5: true,
|
DiscoveryV5: true,
|
||||||
DiscoveryV5Addr: ":0",
|
DiscoveryV5Addr: ":0",
|
||||||
BootstrapNodesV5: config.BootstrapNodes.nodes,
|
BootstrapNodesV5: config.BootstrapNodes.nodes,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue