diff options
| author | MarcoFalke <[email protected]> | 2020-05-29 18:05:40 -0400 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2020-05-29 18:17:18 -0400 |
| commit | fa1433ac1be8481f08c1a0a311a6b87d8a874c6a (patch) | |
| tree | 4f2b275c5103d54f1baf37a5530472be99a24832 /src/protocol.cpp | |
| parent | Merge #18926: test: Pass ArgsManager into getarg_tests (diff) | |
| download | discoin-fa1433ac1be8481f08c1a0a311a6b87d8a874c6a.tar.xz discoin-fa1433ac1be8481f08c1a0a311a6b87d8a874c6a.zip | |
rpc: Remove special case for unknown service flags
Diffstat (limited to 'src/protocol.cpp')
| -rw-r--r-- | src/protocol.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/protocol.cpp b/src/protocol.cpp index 93e76f1f1..5cddfaf05 100644 --- a/src/protocol.cpp +++ b/src/protocol.cpp @@ -5,8 +5,8 @@ #include <protocol.h> -#include <util/system.h> #include <util/strencodings.h> +#include <util/system.h> #ifndef WIN32 # include <arpa/inet.h> @@ -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(); } |