aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2015-06-05 06:06:32 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2015-06-05 06:06:38 +0200
commitd38cd47fe3d65d3d6d867d6fb61a4ce24f0747b3 (patch)
tree5b89ec8560f48e70c8ed64507fcf371c4bfd23f9
parent466f0ea0e66b88285c7797ab36ba777725324e83 (diff)
parentef5fca8b80dc9d59fdf00c82aa74dfddcef92ce7 (diff)
Merge pull request #6234
ef5fca8 fix rpcmining/getblocktemplate univalue transition logic error (Jonas Schnelli)
-rw-r--r--src/rpcmining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpcmining.cpp b/src/rpcmining.cpp
index 76d90a3f7e..8637df660f 100644
--- a/src/rpcmining.cpp
+++ b/src/rpcmining.cpp
@@ -398,7 +398,7 @@ UniValue getblocktemplate(const UniValue& params, bool fHelp)
if (strMode == "proposal")
{
const UniValue& dataval = find_value(oparam, "data");
- if (dataval.isStr())
+ if (!dataval.isStr())
throw JSONRPCError(RPC_TYPE_ERROR, "Missing data String key for proposal");
CBlock block;