diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-06-05 06:06:32 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-06-05 06:06:38 +0200 |
commit | d38cd47fe3d65d3d6d867d6fb61a4ce24f0747b3 (patch) | |
tree | 5b89ec8560f48e70c8ed64507fcf371c4bfd23f9 | |
parent | 466f0ea0e66b88285c7797ab36ba777725324e83 (diff) | |
parent | ef5fca8b80dc9d59fdf00c82aa74dfddcef92ce7 (diff) |
Merge pull request #6234
ef5fca8 fix rpcmining/getblocktemplate univalue transition logic error (Jonas Schnelli)
-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; |