aboutsummaryrefslogtreecommitdiff
path: root/src/protocol.h
diff options
context:
space:
mode:
authorJim Posen <jim.posen@gmail.com>2020-05-04 11:13:13 -0400
committerJohn Newbery <john@johnnewbery.com>2020-05-31 23:01:06 -0400
commit132b30d9c84f2a8053714a438f227b583a89a9ea (patch)
treefbabe20e488f17a3d1d58724d772d5381723b256 /src/protocol.h
parentb3fbc94d4f2937bb682f2766cc9a8d4fde328a3f (diff)
downloadbitcoin-132b30d9c84f2a8053714a438f227b583a89a9ea.tar.xz
[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/protocol.h')
-rw-r--r--src/protocol.h3
1 files changed, 3 insertions, 0 deletions
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.