diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-06-05 06:06:32 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-06-05 06:06:38 +0200 |
| commit | d38cd47fe3d65d3d6d867d6fb61a4ce24f0747b3 (patch) | |
| tree | 5b89ec8560f48e70c8ed64507fcf371c4bfd23f9 /src/rpcmining.cpp | |
| parent | Merge pull request #6121 (diff) | |
| parent | fix rpcmining/getblocktemplate univalue transition logic error (diff) | |
| download | discoin-d38cd47fe3d65d3d6d867d6fb61a4ce24f0747b3.tar.xz discoin-d38cd47fe3d65d3d6d867d6fb61a4ce24f0747b3.zip | |
Merge pull request #6234
ef5fca8 fix rpcmining/getblocktemplate univalue transition logic error (Jonas Schnelli)
Diffstat (limited to 'src/rpcmining.cpp')
| -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 76d90a3f7..8637df660 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; |