From 378db9f917c5912a139ede12061d161e139aca32 Mon Sep 17 00:00:00 2001 From: Sjors Provoost Date: Mon, 13 Jan 2025 19:50:17 +0100 Subject: [PATCH] tmp: remove getblocktemplate seatbelt --- src/rpc/mining.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp index 7963903e95880..02d1ce9b11aa3 100644 --- a/src/rpc/mining.cpp +++ b/src/rpc/mining.cpp @@ -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);