aboutsummaryrefslogtreecommitdiff
path: root/src/net_processing.cpp
diff options
context:
space:
mode:
authorJim Posen <[email protected]>2020-05-04 11:13:13 -0400
committerJohn Newbery <[email protected]>2020-05-31 23:01:06 -0400
commit132b30d9c84f2a8053714a438f227b583a89a9ea (patch)
treefbabe20e488f17a3d1d58724d772d5381723b256 /src/net_processing.cpp
parentApply cfilters review fixups (diff)
downloaddiscoin-132b30d9c84f2a8053714a438f227b583a89a9ea.tar.xz
discoin-132b30d9c84f2a8053714a438f227b583a89a9ea.zip
[net] Signal NODE_COMPACT_FILTERS if we're serving compact filters.
If -peerblockfilters is configured, signal the NODE_COMPACT_FILTERS service bit to indicate that we are able to serve compact block filters, headers and checkpoints.
Diffstat (limited to 'src/net_processing.cpp')
-rw-r--r--src/net_processing.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp
index 321e54b3d..587b655d1 100644
--- a/src/net_processing.cpp
+++ b/src/net_processing.cpp
@@ -2009,7 +2009,7 @@ static bool PrepareBlockFilterRequest(CNode& peer, const CChainParams& chain_par
{
const bool supported_filter_type =
(filter_type == BlockFilterType::BASIC &&
- gArgs.GetBoolArg("-peerblockfilters", DEFAULT_PEERBLOCKFILTERS));
+ (peer.GetLocalServices() & NODE_COMPACT_FILTERS));
if (!supported_filter_type) {
LogPrint(BCLog::NET, "peer %d requested unsupported block filter type: %d\n",
peer.GetId(), static_cast<uint8_t>(filter_type));