Browse Source
fix rpcmining/getblocktemplate univalue transition logic error
v1.0.9-lin
Jonas Schnelli
9 years ago
committed by
Jack Grigg
No known key found for this signature in database
GPG Key ID: 6A6914DAFBEA00DA
1 changed files with
1 additions and
1 deletions
-
src/rpcmining.cpp
|
|
@ -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; |
|
|
|