MCPcopy Create free account
hub / github.com/ElementsProject/elements / ServiceFlags

Enum ServiceFlags

src/protocol.h:271–302  ·  view source on GitHub ↗

nServices flags */

Source from the content-addressed store, hash-verified

269
270/** nServices flags */
271enum ServiceFlags : uint64_t {
272 // NOTE: When adding here, be sure to update serviceFlagToStr too
273 // Nothing
274 NODE_NONE = 0,
275 // NODE_NETWORK means that the node is capable of serving the complete block chain. It is currently
276 // set by all Bitcoin Core non pruned nodes, and is unset by SPV clients or other light clients.
277 NODE_NETWORK = (1 << 0),
278 // NODE_BLOOM means the node is capable and willing to handle bloom-filtered connections.
279 // Bitcoin Core nodes used to support this by default, without advertising this bit,
280 // but no longer do as of protocol version 70011 (= NO_BLOOM_VERSION)
281 NODE_BLOOM = (1 << 2),
282 // NODE_WITNESS indicates that a node can be asked for blocks and transactions including
283 // witness data.
284 NODE_WITNESS = (1 << 3),
285 // NODE_COMPACT_FILTERS means the node will service basic block filter requests.
286 // See BIP157 and BIP158 for details on how this is implemented.
287 NODE_COMPACT_FILTERS = (1 << 6),
288 // NODE_NETWORK_LIMITED means the same as NODE_NETWORK with the limitation of only
289 // serving the last 288 (2 day) blocks
290 // See BIP159 for details on how this is implemented.
291 NODE_NETWORK_LIMITED = (1 << 10),
292
293 // Bits 24-31 are reserved for temporary experiments. Just pick a bit that
294 // isn't getting used, or one not being used much, and notify the
295 // bitcoin-development mailing list. Remember that service bits are just
296 // unauthenticated advertisements, so your code must be robust against
297 // collisions and other cases where nodes may be advertising a service they
298 // do not actually support. Other service bits should be allocated via the
299 // BIP process.
300
301 NODE_REPLACE_BY_FEE = (1 << 26),
302};
303
304/**
305 * Convert service flags (a bitmask of NODE_*) to human readable strings.

Callers 7

GetDesirableServiceFlagsFunction · 0.85
init.cppFile · 0.85
AppInitMainFunction · 0.85
AddSingleMethod · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
AddRandomOutboundPeerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected