mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
ethclient/simulated: disable discovery
This commit is contained in:
parent
6fb6d5c368
commit
b5da90d38c
1 changed files with 1 additions and 1 deletions
|
|
@ -91,7 +91,7 @@ func New(alloc core.GenesisAlloc, gasLimit uint64) Backend {
|
|||
// Setup the node object
|
||||
nodeConf := node.DefaultConfig
|
||||
nodeConf.DataDir = ""
|
||||
nodeConf.P2P = p2p.Config{DiscAddr: "", ListenAddr: ""}
|
||||
nodeConf.P2P = p2p.Config{NoDiscovery: true}
|
||||
stack, err := node.New(&nodeConf)
|
||||
if err != nil {
|
||||
// This should never happen, if it does, please open an issue
|
||||
|
|
|
|||
Loading…
Reference in a new issue