From ff351050968f290787cd5fa456d394380f64fec3 Mon Sep 17 00:00:00 2001 From: Jim Posen Date: Wed, 29 Aug 2018 22:15:50 -0700 Subject: init: Add CLI option to enable block filter index. --- src/blockfilter.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/blockfilter.h') diff --git a/src/blockfilter.h b/src/blockfilter.h index 7a219ff22b..914b94fec1 100644 --- a/src/blockfilter.h +++ b/src/blockfilter.h @@ -96,6 +96,12 @@ const std::string& BlockFilterTypeName(BlockFilterType filter_type); /** Find a filter type by its human-readable name. */ 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. -- cgit v1.2.3