Browse Source

Added notes for mining.cpp for GetNodeCount.

0.16.3-insta
Jianping Wu 6 years ago
parent
commit
4b8dade72a
  1. 5
      src/rpc/mining.cpp

5
src/rpc/mining.cpp

@ -443,6 +443,11 @@ UniValue getblocktemplate(const JSONRPCRequest& request)
/* /*
// JWU disable for now!!! // 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) if (g_connman->GetNodeCount(CConnman::CONNECTIONS_ALL) == 0)
throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, "Litecoin is not connected!"); throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, "Litecoin is not connected!");

Loading…
Cancel
Save