mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
rpc: Remove special case for unknown service flags
This commit is contained in:
parent
cb88de3e3d
commit
fa1433ac1b
2 changed files with 11 additions and 6 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue