aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPatrick Lodder <[email protected]>2015-10-13 16:40:08 +0200
committerPatrick Lodder <[email protected]>2015-10-13 16:56:14 +0200
commit6cee9dcd287701f6ffaffefb11093cb62089b906 (patch)
treeeed311e32bd732676a2812ddf450fd82a307fbfe /src
parentMerge pull request #1294 from rnicoll/1.10-dev-miniupnpc (diff)
downloaddiscoin-6cee9dcd287701f6ffaffefb11093cb62089b906.tar.xz
discoin-6cee9dcd287701f6ffaffefb11093cb62089b906.zip
Bring back "target" property of getauxblock
Marked as deprecated but still used in many pool implementations, as well as rpc-tests. This restores AuxPoW compatibility to 100%.
Diffstat (limited to 'src')
-rw-r--r--src/rpcmining.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rpcmining.cpp b/src/rpcmining.cpp
index 87693bd8e..da7ca2594 100644
--- a/src/rpcmining.cpp
+++ b/src/rpcmining.cpp
@@ -752,7 +752,7 @@ Value getauxblockbip22(const Array& params, bool fHelp)
" \"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"
@@ -845,7 +845,7 @@ Value getauxblockbip22(const Array& params, bool fHelp)
result.push_back(Pair("coinbasevalue", (int64_t)block.vtx[0].vout[0].nValue));
result.push_back(Pair("bits", strprintf("%08x", block.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;
}