From fa1433ac1be8481f08c1a0a311a6b87d8a874c6a Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Fri, 29 May 2020 18:05:40 -0400 Subject: rpc: Remove special case for unknown service flags --- src/protocol.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/protocol.cpp b/src/protocol.cpp index 93e76f1f13..5cddfaf052 100644 --- a/src/protocol.cpp +++ b/src/protocol.cpp @@ -5,8 +5,8 @@ #include -#include #include +#include #ifndef WIN32 # include @@ -216,11 +216,7 @@ static std::string serviceFlagToStr(size_t bit) std::ostringstream stream; stream.imbue(std::locale::classic()); stream << "UNKNOWN["; - if (bit < 8) { - stream << service_flag; - } else { - stream << "2^" << bit; - } + stream << "2^" << bit; stream << "]"; return stream.str(); } -- cgit v1.2.3