diff options
| author | Jim Posen <[email protected]> | 2020-05-04 11:13:13 -0400 |
|---|---|---|
| committer | John Newbery <[email protected]> | 2020-05-31 23:01:06 -0400 |
| commit | 132b30d9c84f2a8053714a438f227b583a89a9ea (patch) | |
| tree | fbabe20e488f17a3d1d58724d772d5381723b256 /src/protocol.h | |
| parent | Apply cfilters review fixups (diff) | |
| download | discoin-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/protocol.h')
| -rw-r--r-- | src/protocol.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/protocol.h b/src/protocol.h index 985f44640..a68f30287 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. |