rpc: add help for new gcs commands

This commit is contained in:
Olaoluwa Osuntokun 2018-05-18 19:17:54 -07:00
parent 5596b63846
commit 4cb1c950e0

View file

@ -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", "getblocktemplate--result1": "An error string which represents why the proposal was rejected or nothing if accepted",
// GetCFilterCmd help. // GetCFilterCmd help.
"getcfilter--synopsis": "Returns a block's committed filter given its hash.", "getcfilter--synopsis": "Returns a block's committed filter given its hash.",
"getcfilter-hash": "The hash of the block", "getcfilter-filtertype": "The type of filter to return (0=regular, 1=extended)",
"getcfilter--result0": "The block's committed filter", "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. // GetConnectionCountCmd help.
"getconnectioncount--synopsis": "Returns the number of active connections to other peers.", "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}, "getblocktemplate": {(*btcjson.GetBlockTemplateResult)(nil), (*string)(nil), nil},
"getblockchaininfo": {(*btcjson.GetBlockChainInfoResult)(nil)}, "getblockchaininfo": {(*btcjson.GetBlockChainInfoResult)(nil)},
"getcfilter": {(*string)(nil)}, "getcfilter": {(*string)(nil)},
"getcfilterheader": {(*string)(nil)},
"getconnectioncount": {(*int32)(nil)}, "getconnectioncount": {(*int32)(nil)},
"getcurrentnet": {(*uint32)(nil)}, "getcurrentnet": {(*uint32)(nil)},
"getdifficulty": {(*float64)(nil)}, "getdifficulty": {(*float64)(nil)},