fix rpcmining/getblocktemplate univalue transition logic error

This commit is contained in:
Jonas Schnelli 2015-06-04 21:39:44 +02:00 committed by Jack Grigg
parent b60e9f230f
commit f70084cf06
No known key found for this signature in database
GPG Key ID: 6A6914DAFBEA00DA
1 changed files with 1 additions and 1 deletions

View File

@ -521,7 +521,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;