Changeset View
Changeset View
Standalone View
Standalone View
src/protocol.h
Show First 20 Lines • Show All 302 Lines • ▼ Show 20 Lines | enum ServiceFlags : uint64_t { | ||||
// TODO: remove (free up) the NODE_BITCOIN_CASH service bit once no longer | // TODO: remove (free up) the NODE_BITCOIN_CASH service bit once no longer | ||||
// needed. | // needed. | ||||
NODE_BITCOIN_CASH = (1 << 5), | NODE_BITCOIN_CASH = (1 << 5), | ||||
// NODE_NETWORK_LIMITED means the same as NODE_NETWORK with the limitation | // NODE_NETWORK_LIMITED means the same as NODE_NETWORK with the limitation | ||||
// of only serving the last 288 (2 day) blocks | // of only serving the last 288 (2 day) blocks | ||||
// See BIP159 for details on how this is implemented. | // See BIP159 for details on how this is implemented. | ||||
NODE_NETWORK_LIMITED = (1 << 10), | NODE_NETWORK_LIMITED = (1 << 10), | ||||
// The last non experimental service bit, helper for looping over the flags | |||||
NODE_LAST_NON_EXPERIMENTAL_SERVICE_BIT = (1 << 23), | |||||
// Bits 24-31 are reserved for temporary experiments. Just pick a bit that | // Bits 24-31 are reserved for temporary experiments. Just pick a bit that | ||||
// isn't getting used, or one not being used much, and notify the | // isn't getting used, or one not being used much, and notify the | ||||
// bitcoin-development mailing list. Remember that service bits are just | // bitcoin-development mailing list. Remember that service bits are just | ||||
// unauthenticated advertisements, so your code must be robust against | // unauthenticated advertisements, so your code must be robust against | ||||
// collisions and other cases where nodes may be advertising a service they | // collisions and other cases where nodes may be advertising a service they | ||||
// do not actually support. Other service bits should be allocated via the | // do not actually support. Other service bits should be allocated via the | ||||
// BIP process. | // BIP process. | ||||
▲ Show 20 Lines • Show All 151 Lines • Show Last 20 Lines |