Skip to content

Commit

Permalink
Remove stratum signaling
Browse files Browse the repository at this point in the history
This patch fully restores the default mining configuration last seen in 0.14.8.
  • Loading branch information
microguy committed Jan 12, 2023
1 parent 60aac47 commit 725787d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/rpc/mining.cpp
Expand Up @@ -676,12 +676,6 @@ UniValue getblocktemplate(const JSONRPCRequest& request)
result.push_back(Pair("bits", strprintf("%08x", pblock->nBits)));
result.push_back(Pair("height", (int64_t)(pindexPrev->nHeight+1)));

// Signal non-mining time frame to stratum pool

if (CBlockIndex * theBlock = GetPreviousBlock(*pblock, 5)) {
result.push_back(Pair("mining_disabled", (((pblock->GetBlockTime() - theBlock->nTime) < ((10 * 60))) || (pblock->GetBlockTime() > GetAdjustedTime()))? true : false ));
}

return result;
}

Expand Down

0 comments on commit 725787d

Please sign in to comment.