Skip to content

Commit

Permalink
kommentoitu IsInitialBockDownload() check pois
Browse files Browse the repository at this point in the history
  • Loading branch information
vizitys committed Jul 8, 2021
1 parent a50d2ab commit a9d4046
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/rpc/mining.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -446,9 +446,11 @@ static UniValue getblocktemplate(const JSONRPCRequest& request)
if (g_connman->GetNodeCount(CConnman::CONNECTIONS_ALL) == 0)
throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, "Hallacoin is not connected!");

if (IsInitialBlockDownload())
// Skipataan check koska jää tähän jumiin aikachekkiin jos viimesin block on yli päivän vanha
// BUG: Tämä saattaa johtaa forkkiin chainista jos ei ole syncissä
/* if (IsInitialBlockDownload())
throw JSONRPCError(RPC_CLIENT_IN_INITIAL_DOWNLOAD, "Hallacoin is downloading blocks...");

*/
static unsigned int nTransactionsUpdatedLast;

if (!lpval.isNull())
Expand Down

0 comments on commit a9d4046

Please sign in to comment.