From 4b8dade72a79d62e64a4fd15eb7b3fd69d0e336f Mon Sep 17 00:00:00 2001 From: Jianping Wu Date: Mon, 5 Nov 2018 11:54:51 -0800 Subject: [PATCH] Added notes for mining.cpp for GetNodeCount. --- src/rpc/mining.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp index ccc1368b0..ebede2a17 100644 --- a/src/rpc/mining.cpp +++ b/src/rpc/mining.cpp @@ -443,6 +443,11 @@ UniValue getblocktemplate(const JSONRPCRequest& request) /* // JWU disable for now!!! + // JWU To make this work: + // 1. On connecting clint, use option: -connect=192.168.x.x + // 2. Make sure both have correct next work required in pow.cpp. + // 3. Use -maxtipage=24*60*60*n, where n is the number of days the tip has not + // been updated. Otherwise IsInitialBlockDownload will be true. if (g_connman->GetNodeCount(CConnman::CONNECTIONS_ALL) == 0) throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, "Litecoin is not connected!");