[REST] add JSON support for /rest/headers/

This commit is contained in:
Jonas Schnelli
2014-12-16 10:50:44 +01:00
committed by Jack Grigg
parent 483672f772
commit 81eb80d841
3 changed files with 50 additions and 10 deletions

View File

@@ -99,7 +99,6 @@ UniValue blockheaderToJSON(const CBlockIndex* blockindex)
return result;
}
UniValue blockToJSON(const CBlock& block, const CBlockIndex* blockindex, bool txDetails = false)
{
UniValue result(UniValue::VOBJ);
@@ -141,7 +140,6 @@ UniValue blockToJSON(const CBlock& block, const CBlockIndex* blockindex, bool tx
return result;
}
UniValue getblockcount(const UniValue& params, bool fHelp)
{
if (fHelp || params.size() != 0)