From 132b30d9c84f2a8053714a438f227b583a89a9ea Mon Sep 17 00:00:00 2001 From: Jim Posen Date: Mon, 4 May 2020 11:13:13 -0400 Subject: [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. --- src/protocol.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/protocol.h') diff --git a/src/protocol.h b/src/protocol.h index 985f44640b..a68f30287d 100644 --- a/src/protocol.h +++ b/src/protocol.h @@ -285,6 +285,9 @@ enum ServiceFlags : uint64_t { // NODE_WITNESS indicates that a node can be asked for blocks and transactions including // witness data. NODE_WITNESS = (1 << 3), + // NODE_COMPACT_FILTERS means the node will service basic block filter requests. + // See BIP157 and BIP158 for details on how this is implemented. + NODE_COMPACT_FILTERS = (1 << 6), // NODE_NETWORK_LIMITED means the same as NODE_NETWORK with the limitation of only // serving the last 288 (2 day) blocks // See BIP159 for details on how this is implemented. -- cgit v1.2.3