aboutsummaryrefslogtreecommitdiff
path: root/src/rpcclient.cpp
diff options
context:
space:
mode:
authorPeter Todd <pete@petertodd.org>2015-06-05 17:07:17 -0230
committerPeter Todd <pete@petertodd.org>2015-06-05 17:07:58 -0230
commit076badb60f33f0c32b035de220ca14c52a423a2a (patch)
treed77ab151e6e6660013ea675a75ea06e07cae92f4 /src/rpcclient.cpp
parentab20ae807961982c54e92675bee4c4000b990b7b (diff)
Add getblockheader RPC call
Alternative to getblock that works even when the block itself has been pruned, returning all available information.
Diffstat (limited to 'src/rpcclient.cpp')
-rw-r--r--src/rpcclient.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rpcclient.cpp b/src/rpcclient.cpp
index f254da5de0..b15df6a9b9 100644
--- a/src/rpcclient.cpp
+++ b/src/rpcclient.cpp
@@ -71,6 +71,7 @@ static const CRPCConvertParam vRPCConvertParams[] =
{ "listunspent", 1 },
{ "listunspent", 2 },
{ "getblock", 1 },
+ { "getblockheader", 1 },
{ "gettransaction", 1 },
{ "getrawtransaction", 1 },
{ "createrawtransaction", 0 },