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

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