mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
[REST] add JSON support for /rest/headers/
This commit is contained in:
parent
d0a10c1959
commit
c45c7ea0fa
4 changed files with 51 additions and 13 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue