Browse Source

RPC, cosmetic: de-indent getblocktemplate()

0.8
Jeff Garzik 13 years ago committed by Jeff Garzik
parent
commit
ddd1ffb4f1
  1. 2
      src/bitcoinrpc.cpp

2
src/bitcoinrpc.cpp

@ -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…
Cancel
Save