Skip to content

Commit 5779010

Browse files
committed
RPC/Blockchain: scanblocks: Accept named param for filter_false_positives
1 parent 96ec3b6 commit 5779010

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/rpc/blockchain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2309,7 +2309,7 @@ static RPCHelpMan scanblocks()
23092309
RPCArg{"start_height", RPCArg::Type::NUM, RPCArg::Default{0}, "Height to start to scan from"},
23102310
RPCArg{"stop_height", RPCArg::Type::NUM, RPCArg::DefaultHint{"chain tip"}, "Height to stop to scan"},
23112311
RPCArg{"filtertype", RPCArg::Type::STR, RPCArg::Default{BlockFilterTypeName(BlockFilterType::BASIC)}, "The type name of the filter"},
2312-
RPCArg{"options", RPCArg::Type::OBJ, RPCArg::Optional::OMITTED, "",
2312+
RPCArg{"options", RPCArg::Type::OBJ_NAMED_PARAMS, RPCArg::Optional::OMITTED, "",
23132313
{
23142314
{"filter_false_positives", RPCArg::Type::BOOL, RPCArg::Default{false}, "Filter false positives (slower and may fail on pruned nodes). Otherwise they may occur at a rate of 1/M"},
23152315
},

src/rpc/client.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ static const CRPCConvertParam vRPCConvertParams[] =
9191
{ "scanblocks", 2, "start_height" },
9292
{ "scanblocks", 3, "stop_height" },
9393
{ "scanblocks", 5, "options" },
94+
{ "scanblocks", 5, "filter_false_positives" },
9495
{ "scantxoutset", 1, "scanobjects" },
9596
{ "addmultisigaddress", 0, "nrequired" },
9697
{ "addmultisigaddress", 1, "keys" },

0 commit comments

Comments
 (0)