diff --git a/src/deprecation.cpp b/src/deprecation.cpp index 40264b782..f6fba9f8f 100644 --- a/src/deprecation.cpp +++ b/src/deprecation.cpp @@ -43,8 +43,8 @@ void EnforceNodeDeprecation(int nHeight, bool forceLogging, bool fThread) { msg = strprintf(_("This version will be deprecated at block height %d, and will automatically shut down."), DEPRECATION_HEIGHT) + " " + _("You should upgrade to the latest version of Verus."); + LogPrintf("*** %s\n", msg); + CAlert::Notify(msg, fThread); + uiInterface.ThreadSafeMessageBox(msg, "", CClientUIInterface::MSG_WARNING); } - LogPrintf("*** %s\n", msg); - CAlert::Notify(msg, fThread); - uiInterface.ThreadSafeMessageBox(msg, "", CClientUIInterface::MSG_WARNING); } diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp index f704742f0..409ab0137 100644 --- a/src/rpc/mining.cpp +++ b/src/rpc/mining.cpp @@ -614,6 +614,7 @@ UniValue getblocktemplate(const UniValue& params, bool fHelp) } if (Params().MiningRequiresPeers() && (IsNotInSync() || fvNodesEmpty)) { + /* int loops = 0, blockDiff = 0, newDiff = 0; const int delay = 15; do { @@ -643,6 +644,8 @@ UniValue getblocktemplate(const UniValue& params, bool fHelp) } while (fvNodesEmpty || IsNotInSync()); if (loops > delay) throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, "Cannot get a block template while no peers are connected or chain not in sync!"); + */ + throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, "Cannot get a block template while no peers are connected or chain not in sync!"); } //if (IsInitialBlockDownload()) diff --git a/src/rpc/server.cpp b/src/rpc/server.cpp index 9b50f7e40..0c227dd21 100644 --- a/src/rpc/server.cpp +++ b/src/rpc/server.cpp @@ -731,6 +731,8 @@ UniValue CRPCTable::execute(const std::string &strMethod, const UniValue ¶ms throw JSONRPCError(RPC_IN_WARMUP, rpcWarmupStatus); } + // printf("RPC call: %s\n", strMethod.c_str()); + // Find method const CRPCCommand *pcmd = tableRPC[strMethod]; if (!pcmd)