Added notes for mining.cpp for GetNodeCount.

This commit is contained in:
Jianping Wu 2018-11-05 11:54:51 -08:00
parent 0a3cd4eccd
commit f9a7c7d3cb

View File

@ -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!");