From 99cc7b7b1357d0845695fd8a7a564ebeab6b3918 Mon Sep 17 00:00:00 2001
From: ledgerwatch <akhounov@gmail.com>
Date: Thu, 30 Sep 2021 17:40:58 +0100
Subject: [PATCH] Fix for the RPC daemon dual mode (#2756)

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
---
 cmd/rpcdaemon/cli/config.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmd/rpcdaemon/cli/config.go b/cmd/rpcdaemon/cli/config.go
index cea4c8269c..495c2448e3 100644
--- a/cmd/rpcdaemon/cli/config.go
+++ b/cmd/rpcdaemon/cli/config.go
@@ -239,9 +239,9 @@ func RemoteServices(ctx context.Context, cfg Flags, logger log.Logger, rootCance
 		}
 		db = rwKv
 		stateCache = kvcache.NewDummy()
-		return db, eth, txPool, mining, stateCache, nil
+	} else {
+		log.Info("if you run RPCDaemon on same machine with Erigon add --datadir option")
 	}
-	log.Info("if you run RPCDaemon on same machine with Erigon add --datadir option")
 
 	if cfg.PrivateApiAddr == "" {
 		return db, eth, txPool, mining, stateCache, nil
-- 
GitLab