Bitcoin Core 28.99.0
P2P Digital Currency
|
Go to the source code of this file.
Functions | |
bool | operator< (const CInv &a, const CInv &b) |
static std::string | serviceFlagToStr (size_t bit) |
Convert a service flag (NODE_*) to a human readable string. More... | |
std::vector< std::string > | serviceFlagsToStr (uint64_t flags) |
Convert service flags (a bitmask of NODE_*) to human readable strings. More... | |
GenTxid | ToGenTxid (const CInv &inv) |
Convert a TX/WITNESS_TX/WTX CInv to a GenTxid. More... | |
Definition at line 53 of file protocol.cpp.
std::vector< std::string > serviceFlagsToStr | ( | uint64_t | flags | ) |
Convert service flags (a bitmask of NODE_*) to human readable strings.
It supports unknown service flags which will be returned as "UNKNOWN[...]".
[in] | flags | multiple NODE_* bitwise-OR-ed together |
Definition at line 108 of file protocol.cpp.
|
static |
Convert a service flag (NODE_*) to a human readable string.
It supports unknown service flags which will be returned as "UNKNOWN[...]".
[in] | bit | the service flag is calculated as (1 << bit) |
Definition at line 91 of file protocol.cpp.