Browse Source

Added notes for mining.cpp for GetNodeCount.

cn
Jianping Wu 6 years ago
parent
commit
f9a7c7d3cb
  1. 5
      src/rpc/mining.cpp

5
src/rpc/mining.cpp

@ -443,6 +443,11 @@ UniValue getblocktemplate(const JSONRPCRequest& request) @@ -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!");

Loading…
Cancel
Save