mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-25 22:14:15 +00:00
RPC, cosmetic: de-indent getblocktemplate()
This commit is contained in:
parent
79f2525ab6
commit
ddd1ffb4f1
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user