diff --git a/src/blockfilter.h b/src/blockfilter.h --- a/src/blockfilter.h +++ b/src/blockfilter.h @@ -97,6 +97,12 @@ bool BlockFilterTypeByName(const std::string &name, BlockFilterType &filter_type); +/** Get a list of known filter types. */ +const std::vector &AllBlockFilterTypes(); + +/** Get a comma-separated list of known filter type names. */ +const std::string &ListBlockFilterTypes(); + /** * Complete block filter struct as defined in BIP 157. Serialization matches * payload of "cfilter" messages. diff --git a/src/blockfilter.cpp b/src/blockfilter.cpp --- a/src/blockfilter.cpp +++ b/src/blockfilter.cpp @@ -3,12 +3,16 @@ // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include + #include #include #include #include