|
|
@ -1959,7 +1959,6 @@ Value getblocktemplate(const Array& params, bool fHelp) |
|
|
|
if (strMode != "template") |
|
|
|
if (strMode != "template") |
|
|
|
throw JSONRPCError(-8, "Invalid mode"); |
|
|
|
throw JSONRPCError(-8, "Invalid mode"); |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (vNodes.empty()) |
|
|
|
if (vNodes.empty()) |
|
|
|
throw JSONRPCError(-9, "Bitcoin is not connected!"); |
|
|
|
throw JSONRPCError(-9, "Bitcoin is not connected!"); |
|
|
|
|
|
|
|
|
|
|
@ -2075,7 +2074,6 @@ Value getblocktemplate(const Array& params, bool fHelp) |
|
|
|
result.push_back(Pair("height", (int64_t)(pindexPrev->nHeight+1))); |
|
|
|
result.push_back(Pair("height", (int64_t)(pindexPrev->nHeight+1))); |
|
|
|
|
|
|
|
|
|
|
|
return result; |
|
|
|
return result; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Value submitblock(const Array& params, bool fHelp) |
|
|
|
Value submitblock(const Array& params, bool fHelp) |
|
|
|