From ef5fca8b80dc9d59fdf00c82aa74dfddcef92ce7 Mon Sep 17 00:00:00 2001 From: Jonas Schnelli Date: Thu, 4 Jun 2015 21:39:44 +0200 Subject: [PATCH] fix rpcmining/getblocktemplate univalue transition logic error --- src/rpcmining.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;