Skip to content

Commit 7528e6e

Browse files
committed
net, init: Support taproot filters
1 parent 2290d2f commit 7528e6e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/init.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ bool AppInitParameterInteraction(const ArgsManager& args)
977977

978978
// Signal NODE_COMPACT_FILTERS if peerblockfilters and basic filters index are both enabled.
979979
if (args.GetBoolArg("-peerblockfilters", DEFAULT_PEERBLOCKFILTERS)) {
980-
if (!g_enabled_filter_types.contains(BlockFilterType::BASIC)) {
980+
if (!g_enabled_filter_types.contains(BlockFilterType::BASIC) && !g_enabled_filter_types.contains(BlockFilterType::TAPROOT)) {
981981
return InitError(_("Cannot set -peerblockfilters without -blockfilterindex."));
982982
}
983983

src/net_processing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3237,7 +3237,7 @@ bool PeerManagerImpl::PrepareBlockFilterRequest(CNode& node, Peer& peer,
32373237
BlockFilterIndex*& filter_index)
32383238
{
32393239
const bool supported_filter_type =
3240-
(filter_type == BlockFilterType::BASIC &&
3240+
((filter_type == BlockFilterType::BASIC || filter_type == BlockFilterType::TAPROOT) &&
32413241
(peer.m_our_services & NODE_COMPACT_FILTERS));
32423242
if (!supported_filter_type) {
32433243
LogDebug(BCLog::NET, "peer requested unsupported block filter type: %d, %s\n",

0 commit comments

Comments
 (0)