|
|
@ -1,5 +1,6 @@ |
|
|
|
// Copyright (c) 2010 Satoshi Nakamoto
|
|
|
|
// Copyright (c) 2009-2014 The Bitcoin Core developers
|
|
|
|
// Copyright (c) 2017 The Hush developers
|
|
|
|
// Distributed under the MIT software license, see the accompanying
|
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
|
|
@ -550,13 +551,13 @@ UniValue getblocktemplate(const UniValue& params, bool fHelp) |
|
|
|
} |
|
|
|
|
|
|
|
if (strMode != "template") |
|
|
|
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid mode"); |
|
|
|
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid mode!"); |
|
|
|
|
|
|
|
if (vNodes.empty()) |
|
|
|
throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, "Zcash is not connected!"); |
|
|
|
throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, "Hush is not connected!"); |
|
|
|
|
|
|
|
if (IsInitialBlockDownload()) |
|
|
|
throw JSONRPCError(RPC_CLIENT_IN_INITIAL_DOWNLOAD, "Zcash is downloading blocks..."); |
|
|
|
throw JSONRPCError(RPC_CLIENT_IN_INITIAL_DOWNLOAD, "Hush is downloading blocks, be patient please..."); |
|
|
|
|
|
|
|
static unsigned int nTransactionsUpdatedLast; |
|
|
|
|
|
|
|