Skip to content

Commit 5504703

Browse files
author
MarcoFalke
committed
Merge #18396: rpc: add missing HelpExampleRpc for getblockfilter
d18bf0c rpc: add missing HelpExampleRpc for getblockfilter (Sebastian Falbesoner) Pull request description: From all RPCs in the "blockchain" category, `getblockfilter` is the only one where there is only a CLI example present but not a curl RPC example (all other RPCs in this category have either both or none). This PR adds the missing `HelpExampleRpc` string. ACKs for top commit: emilengler: utACK d18bf0c Tree-SHA512: b37c11bdef439aa9d5736c9e0e0bbcc19aff876744f0c4e099ca5c67c9ff1293f1f9140f0d167ea13fee5396ae017aa4a0f1bae4f7aec8fa80b46beb421561c1
2 parents 5bf45fe + d18bf0c commit 5504703

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/rpc/blockchain.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2178,7 +2178,8 @@ static UniValue getblockfilter(const JSONRPCRequest& request)
21782178
{RPCResult::Type::STR_HEX, "header", "the hex-encoded filter header"},
21792179
}},
21802180
RPCExamples{
2181-
HelpExampleCli("getblockfilter", "\"00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09\" \"basic\"")
2181+
HelpExampleCli("getblockfilter", "\"00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09\" \"basic\"") +
2182+
HelpExampleRpc("getblockfilter", "\"00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09\", \"basic\"")
21822183
}
21832184
}.Check(request);
21842185

0 commit comments

Comments
 (0)