Remove LES activation when using upstream (#373)

This commit is contained in:
Adam Babik 2017-09-29 09:40:10 +02:00 committed by Ivan Daniluk
parent 9cc5fd2112
commit ede939dd9e
1 changed files with 0 additions and 9 deletions

View File

@ -75,15 +75,6 @@ func MakeNode(config *params.NodeConfig) (*node.Node, error) {
if err := activateEthService(stack, config); err != nil {
return nil, fmt.Errorf("%v: %v", ErrEthServiceRegistrationFailure, err)
}
} else {
// TODO(divan): FIXME: this is rude workaround for #294 issue
// we start activate LES service to have RPC handler for `eth_accounts` call
// should be removed once proper own RPC and refactoring is completed
config.MaxPeers = 0
if err := activateEthService(stack, config); err != nil {
return nil, fmt.Errorf("%v: %v", ErrEthServiceRegistrationFailure, err)
}
log.Info("Blockchain synchronization is switched off, RPC requests will be proxied to " + config.UpstreamConfig.URL)
}
// start Whisper service