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 a AvalanchePoll. | |||||
* Peer should respond with "ava_vote" message. | |||||
*/ | |||||
extern const char *AVA_POLL; | |||||
/** | |||||
* Contains a vector of AvalancheVote. | |||||
* Sent in response to a "ava_poll" message. | |||||
*/ | |||||
extern const char *AVA_VOTES; | |||||
/** | /** | ||||
* 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 26 Lines | enum ServiceFlags : uint64_t { | ||||
NODE_XTHIN = (1 << 4), | NODE_XTHIN = (1 << 4), | ||||
// NODE_BITCOIN_CASH means the node supports Bitcoin Cash and the | // NODE_BITCOIN_CASH means the node supports Bitcoin Cash and the | ||||
// associated consensus rule changes. | // associated consensus rule changes. | ||||
// This service bit is intended to be used prior until some time after the | // This service bit is intended to be used prior until some time after the | ||||
// UAHF activation when the Bitcoin Cash network has adequately separated. | // UAHF activation when the Bitcoin Cash network has adequately separated. | ||||
// 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_AVALANCHE means the node supports Bitcoin Cash's avalanche | |||||
// preconsensus mechanism. | |||||
NODE_AVALANCHE = (1 << 6), | |||||
// 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 140 Lines • Show Last 20 Lines |