From 4cb1c950e0e5b6656eb991241b29867e5fd14937 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Fri, 18 May 2018 19:17:54 -0700 Subject: [PATCH] rpc: add help for new gcs commands --- rpcserverhelp.go | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/rpcserverhelp.go b/rpcserverhelp.go index 46d05a4d..489e9a87 100644 --- a/rpcserverhelp.go +++ b/rpcserverhelp.go @@ -333,9 +333,16 @@ var helpDescsEnUS = map[string]string{ "getblocktemplate--result1": "An error string which represents why the proposal was rejected or nothing if accepted", // GetCFilterCmd help. - "getcfilter--synopsis": "Returns a block's committed filter given its hash.", - "getcfilter-hash": "The hash of the block", - "getcfilter--result0": "The block's committed filter", + "getcfilter--synopsis": "Returns a block's committed filter given its hash.", + "getcfilter-filtertype": "The type of filter to return (0=regular, 1=extended)", + "getcfilter-hash": "The hash of the block", + "getcfilter--result0": "The block's committed filter", + + // GetCFilterHeaderCmd help. + "getcfilterheader--synopsis": "Returns a block's compact filter header given its hash.", + "getcfilterheader-filtertype": "The type of filter header to return (0=regular, 1=extended)", + "getcfilterheader-hash": "The hash of the block", + "getcfilterheader--result0": "The block's gcs filter header", // GetConnectionCountCmd help. "getconnectioncount--synopsis": "Returns the number of active connections to other peers.", @@ -684,6 +691,7 @@ var rpcResultTypes = map[string][]interface{}{ "getblocktemplate": {(*btcjson.GetBlockTemplateResult)(nil), (*string)(nil), nil}, "getblockchaininfo": {(*btcjson.GetBlockChainInfoResult)(nil)}, "getcfilter": {(*string)(nil)}, + "getcfilterheader": {(*string)(nil)}, "getconnectioncount": {(*int32)(nil)}, "getcurrentnet": {(*uint32)(nil)}, "getdifficulty": {(*float64)(nil)},