mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-20 02:25:40 +01:00
refactor: use strprintf
for creating unknown-service-flag string
No need to use a stringstream here.
This commit is contained in:
parent
c73c8d53fe
commit
706c8e0969
@ -199,12 +199,7 @@ static std::string serviceFlagToStr(size_t bit)
|
||||
// Not using default, so we get warned when a case is missing
|
||||
}
|
||||
|
||||
std::ostringstream stream;
|
||||
stream.imbue(std::locale::classic());
|
||||
stream << "UNKNOWN[";
|
||||
stream << "2^" << bit;
|
||||
stream << "]";
|
||||
return stream.str();
|
||||
return strprintf("UNKNOWN[2^%u]", bit);
|
||||
}
|
||||
|
||||
std::vector<std::string> serviceFlagsToStr(uint64_t flags)
|
||||
|
Loading…
Reference in New Issue
Block a user