diff options
| author | Ross Nicoll <[email protected]> | 2019-07-13 19:11:28 +0000 |
|---|---|---|
| committer | Ross Nicoll <[email protected]> | 2019-07-13 19:23:36 +0000 |
| commit | dbfb33abe0dc57849975d9be25218907296a9954 (patch) | |
| tree | ae374a3500129bf833e909d406de040652abdcca /src/rpc/mining.cpp | |
| parent | Mark 1.14 ready for release (diff) | |
| download | discoin-dbfb33abe0dc57849975d9be25218907296a9954.tar.xz discoin-dbfb33abe0dc57849975d9be25218907296a9954.zip | |
Revert behaviour change in getauxblock
Change getauxblock to respond with a "target" field instead of "_target".
Diffstat (limited to 'src/rpc/mining.cpp')
| -rw-r--r-- | src/rpc/mining.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp index 661177dea..e0c6708d2 100644 --- a/src/rpc/mining.cpp +++ b/src/rpc/mining.cpp @@ -474,10 +474,10 @@ UniValue getblocktemplate(const JSONRPCRequest& request) throw JSONRPCError(RPC_CLIENT_P2P_DISABLED, "Error: Peer-to-peer functionality missing or disabled"); if (g_connman->GetNodeCount(CConnman::CONNECTIONS_ALL) == 0) - throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, "Bitcoin is not connected!"); + throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, "Dogecoin is not connected!"); if (IsInitialBlockDownload()) - throw JSONRPCError(RPC_CLIENT_IN_INITIAL_DOWNLOAD, "Bitcoin is downloading blocks..."); + throw JSONRPCError(RPC_CLIENT_IN_INITIAL_DOWNLOAD, "Dogecoin is downloading blocks..."); static unsigned int nTransactionsUpdatedLast; @@ -958,7 +958,7 @@ UniValue getauxblockbip22(const JSONRPCRequest& request) " \"coinbasevalue\" (numeric) value of the block's coinbase\n" " \"bits\" (string) compressed target of the block\n" " \"height\" (numeric) height of the block\n" - " \"_target\" (string) target in reversed byte order, deprecated\n" + " \"target\" (string) target in reversed byte order\n" "}\n" "\nResult (with arguments):\n" "xxxxx (boolean) whether the submitted block was correct\n" @@ -1065,7 +1065,7 @@ UniValue getauxblockbip22(const JSONRPCRequest& request) result.push_back(Pair("coinbasevalue", (int64_t)pblock->vtx[0]->vout[0].nValue)); result.push_back(Pair("bits", strprintf("%08x", pblock->nBits))); result.push_back(Pair("height", static_cast<int64_t> (pindexPrev->nHeight + 1))); - result.push_back(Pair("_target", HexStr(BEGIN(target), END(target)))); + result.push_back(Pair("target", HexStr(BEGIN(target), END(target)))); return result; } |