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

This commit is contained in:
Jonas Schnelli
2014-12-16 10:50:44 +01:00
parent d0a10c1959
commit c45c7ea0fa
4 changed files with 51 additions and 13 deletions

View File

@@ -77,7 +77,6 @@ UniValue blockheaderToJSON(const CBlockIndex* blockindex)
return result;
}
UniValue blockToJSON(const CBlock& block, const CBlockIndex* blockindex, bool txDetails = false)
{
UniValue result(UniValue::VOBJ);
@@ -118,7 +117,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)