diff options
| author | Peter Todd <[email protected]> | 2015-06-05 17:07:17 -0230 |
|---|---|---|
| committer | Peter Todd <[email protected]> | 2015-06-05 17:07:58 -0230 |
| commit | 076badb60f33f0c32b035de220ca14c52a423a2a (patch) | |
| tree | d77ab151e6e6660013ea675a75ea06e07cae92f4 /src/rpcserver.cpp | |
| parent | Merge pull request #6238 (diff) | |
| download | discoin-076badb60f33f0c32b035de220ca14c52a423a2a.tar.xz discoin-076badb60f33f0c32b035de220ca14c52a423a2a.zip | |
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/rpcserver.cpp')
| -rw-r--r-- | src/rpcserver.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rpcserver.cpp b/src/rpcserver.cpp index e6bf00861..aba016be7 100644 --- a/src/rpcserver.cpp +++ b/src/rpcserver.cpp @@ -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 }, |