diff options
author | Jonas Schnelli <jonas.schnelli@include7.ch> | 2015-06-04 21:39:44 +0200 |
---|---|---|
committer | Jonas Schnelli <jonas.schnelli@include7.ch> | 2015-06-04 21:40:11 +0200 |
commit | ef5fca8b80dc9d59fdf00c82aa74dfddcef92ce7 (patch) | |
tree | 5b89ec8560f48e70c8ed64507fcf371c4bfd23f9 /src | |
parent | 44c7474446d5a020bc06bf2f2b87572f42e54e9e (diff) |
fix rpcmining/getblocktemplate univalue transition logic error
Diffstat (limited to 'src')
-rw-r--r-- | src/rpcmining.cpp | 2 |
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; |