Add getblockheader RPC call

Alternative to getblock that works even when the block itself has been
pruned, returning all available information.
This commit is contained in:
Peter Todd
2015-06-05 17:07:17 -02:30
committed by Jack Grigg
parent 81ae51c883
commit d3d5483eef
4 changed files with 85 additions and 0 deletions

View File

@@ -248,6 +248,7 @@ extern UniValue settxfee(const UniValue& params, bool fHelp);
extern UniValue getmempoolinfo(const UniValue& params, bool fHelp);
extern UniValue getrawmempool(const UniValue& params, bool fHelp);
extern UniValue getblockhash(const UniValue& params, bool fHelp);
extern UniValue getblockheader(const UniValue& params, bool fHelp);
extern UniValue getblock(const UniValue& params, bool fHelp);
extern UniValue gettxoutsetinfo(const UniValue& params, bool fHelp);
extern UniValue gettxout(const UniValue& params, bool fHelp);