Changeset View
Changeset View
Standalone View
Standalone View
src/protocol.h
Show First 20 Lines • Show All 246 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
extern const char *GETBLOCKTXN; | extern const char *GETBLOCKTXN; | ||||
/** | /** | ||||
* Contains a BlockTransactions. | * Contains a BlockTransactions. | ||||
* Sent in response to a "getblocktxn" message. | * Sent in response to a "getblocktxn" message. | ||||
* @since protocol version 70014 as described by BIP 152 | * @since protocol version 70014 as described by BIP 152 | ||||
*/ | */ | ||||
extern const char *BLOCKTXN; | extern const char *BLOCKTXN; | ||||
/** | |||||
* Contains an AvalanchePoll. | |||||
* Peer should respond with "avaresponse" message. | |||||
*/ | |||||
extern const char *AVAPOLL; | |||||
/** | |||||
* Contains an AvalancheResponse. | |||||
* Sent in response to a "avapoll" message. | |||||
*/ | |||||
extern const char *AVARESPONSE; | |||||
/** | /** | ||||
* Indicate if the message is used to transmit the content of a block. | * Indicate if the message is used to transmit the content of a block. | ||||
* These messages can be significantly larger than usual messages and therefore | * These messages can be significantly larger than usual messages and therefore | ||||
* may need to be processed differently. | * may need to be processed differently. | ||||
*/ | */ | ||||
bool IsBlockLike(const std::string &strCommand); | bool IsBlockLike(const std::string &strCommand); | ||||
}; // namespace NetMsgType | }; // namespace NetMsgType | ||||
Show All 34 Lines | enum ServiceFlags : uint64_t { | ||||
// 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. | ||||
// NODE_AVALANCHE means the node supports Bitcoin Cash's avalanche | |||||
// preconsensus mechanism. | |||||
NODE_AVALANCHE = (1 << 24), | |||||
}; | }; | ||||
/** | /** | ||||
* Gets the set of service flags which are "desirable" for a given peer. | * Gets the set of service flags which are "desirable" for a given peer. | ||||
* | * | ||||
* These are the flags which are required for a peer to support for them | * These are the flags which are required for a peer to support for them | ||||
* to be "interesting" to us, ie for us to wish to use one of our few | * to be "interesting" to us, ie for us to wish to use one of our few | ||||
* outbound connection slots for or for us to wish to prioritize keeping | * outbound connection slots for or for us to wish to prioritize keeping | ||||
▲ Show 20 Lines • Show All 132 Lines • Show Last 20 Lines |