Disable listening on port 30303 for the canary (#1198)

This commit is contained in:
Pedro Pombeiro 2018-09-19 14:45:43 +02:00 committed by GitHub
parent b32ef629f4
commit 452b7e2198
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -206,6 +206,7 @@ func makeNodeConfig() (*params.NodeConfig, error) {
nodeConfig.LogFile = *logFile
}
nodeConfig.ListenAddr = ""
nodeConfig.NoDiscovery = true
return whisperConfig(nodeConfig)

View File

@ -82,6 +82,8 @@ func MakeNode(config *params.NodeConfig, db *leveldb.DB) (*node.Node, error) {
return nil, fmt.Errorf("%v: %v", ErrLightEthRegistrationFailureUpstreamEnabled, err)
}
logger.Info("LES protocol is disabled")
// `personal_sign` and `personal_ecRecover` methods are important to
// keep DApps working.
// Usually, they are provided by an ETH or a LES service, but when using