Work on review comments

https://github.com/btcsuite/btcd/pull/1007#discussion_r133563489
This commit is contained in:
Anatoli Babenia 2017-08-19 10:43:10 +03:00 committed by Dave Collins
parent 55e0d5c298
commit 2804f4cffe

View File

@ -684,7 +684,10 @@ func loadConfig() (*config, []string, error) {
if (cfg.RPCUser == "" || cfg.RPCPass == "") &&
(cfg.RPCLimitUser == "" || cfg.RPCLimitPass == "") {
cfg.DisableRPC = true
btcdLog.Infof("JSON-RPC interface is disabled")
}
if cfg.DisableRPC {
btcdLog.Infof("RPC service is disabled")
}
// Default RPC to listen on localhost only.