mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-13 11:25:02 -05:00
RPC, cosmetic: de-indent getblocktemplate()
This commit is contained in:
parent
79f2525ab6
commit
ddd1ffb4f1
1 changed files with 108 additions and 110 deletions
|
@ -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…
Add table
Reference in a new issue