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
parent ab20ae8079
commit 076badb60f
4 changed files with 85 additions and 0 deletions

View File

@@ -288,6 +288,7 @@ static const CRPCCommand vRPCCommands[] =
{ "blockchain", "getblockcount", &getblockcount, true },
{ "blockchain", "getblock", &getblock, true },
{ "blockchain", "getblockhash", &getblockhash, true },
{ "blockchain", "getblockheader", &getblockheader, true },
{ "blockchain", "getchaintips", &getchaintips, true },
{ "blockchain", "getdifficulty", &getdifficulty, true },
{ "blockchain", "getmempoolinfo", &getmempoolinfo, true },