From 2804f4cffe8d869ff505ba8b35a768b0573667fb Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Sat, 19 Aug 2017 10:43:10 +0300 Subject: [PATCH] Work on review comments https://github.com/btcsuite/btcd/pull/1007#discussion_r133563489 --- config.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config.go b/config.go index 3a29cc48..b7a8219b 100644 --- a/config.go +++ b/config.go @@ -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.