Changeset View
Changeset View
Standalone View
Standalone View
src/protocol.cpp
Show First 20 Lines • Show All 270 Lines • ▼ Show 20 Lines | switch (ServiceFlags(service_flag)) { | ||||
case NODE_GETUTXO: | case NODE_GETUTXO: | ||||
return "GETUTXO"; | return "GETUTXO"; | ||||
case NODE_BLOOM: | case NODE_BLOOM: | ||||
return "BLOOM"; | return "BLOOM"; | ||||
case NODE_XTHIN: | case NODE_XTHIN: | ||||
return "XTHIN"; | return "XTHIN"; | ||||
case NODE_NETWORK_LIMITED: | case NODE_NETWORK_LIMITED: | ||||
return "NETWORK_LIMITED"; | return "NETWORK_LIMITED"; | ||||
case NODE_COMPACT_FILTERS: | |||||
return "COMPACT_FILTERS"; | |||||
case NODE_AVALANCHE: | case NODE_AVALANCHE: | ||||
return "AVALANCHE"; | return "AVALANCHE"; | ||||
default: | default: | ||||
std::ostringstream stream; | std::ostringstream stream; | ||||
stream.imbue(std::locale::classic()); | stream.imbue(std::locale::classic()); | ||||
stream << "UNKNOWN["; | stream << "UNKNOWN["; | ||||
stream << "2^" << bit; | stream << "2^" << bit; | ||||
stream << "]"; | stream << "]"; | ||||
Show All 15 Lines |