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

@@ -71,6 +71,7 @@ static const CRPCConvertParam vRPCConvertParams[] =
{ "listunspent", 1 },
{ "listunspent", 2 },
{ "getblock", 1 },
{ "getblockheader", 1 },
{ "gettransaction", 1 },
{ "getrawtransaction", 1 },
{ "createrawtransaction", 0 },