Skip to content

Commit

Permalink
tmp: remove getblocktemplate seatbelt
Browse files Browse the repository at this point in the history
  • Loading branch information
Sjors committed Jan 13, 2025
1 parent 25bd408 commit 378db9f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/rpc/mining.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -760,16 +760,16 @@ static RPCHelpMan getblocktemplate()
if (strMode != "template")
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid mode");

if (!miner.isTestChain()) {
const CConnman& connman = EnsureConnman(node);
if (connman.GetNodeCount(ConnectionDirection::Both) == 0) {
throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, CLIENT_NAME " is not connected!");
}

if (miner.isInitialBlockDownload()) {
throw JSONRPCError(RPC_CLIENT_IN_INITIAL_DOWNLOAD, CLIENT_NAME " is in initial sync and waiting for blocks...");
}
}
// if (!miner.isTestChain()) {
// const CConnman& connman = EnsureConnman(node);
// if (connman.GetNodeCount(ConnectionDirection::Both) == 0) {
// throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, CLIENT_NAME " is not connected!");
// }

// if (miner.isInitialBlockDownload()) {
// throw JSONRPCError(RPC_CLIENT_IN_INITIAL_DOWNLOAD, CLIENT_NAME " is in initial sync and waiting for blocks...");
// }
// }

static unsigned int nTransactionsUpdatedLast;
const CTxMemPool& mempool = EnsureMemPool(node);
Expand Down

0 comments on commit 378db9f

Please sign in to comment.