diff options
author | Vasil Dimov <vd@FreeBSD.org> | 2020-05-29 18:49:26 +0200 |
---|---|---|
committer | Vasil Dimov <vd@FreeBSD.org> | 2020-05-29 18:49:26 +0200 |
commit | fbacad1880341ace31f669530c66d4e322d19235 (patch) | |
tree | 39b4b49f13a0899c3232dd6885980f866afa611f /src/rpc | |
parent | f2e2c5ebcccf8d656b850c28452e6e652934f36b (diff) |
util: simplify the interface of serviceFlagToStr()
Don't take two redundant arguments in `serviceFlagToStr()`.
As a side effect this fixes an issue introduced in
https://github.com/bitcoin/bitcoin/pull/18165 due to which the GUI could
print something like `UNKNOWN[1033] & UNKNOWN[1033] & UNKNOWN[2^10]`
instead of `NETWORK & WITNESS`.
Diffstat (limited to 'src/rpc')
-rw-r--r-- | src/rpc/util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/util.cpp b/src/rpc/util.cpp index 0e13d8dfce..6cd4c2664d 100644 --- a/src/rpc/util.cpp +++ b/src/rpc/util.cpp @@ -847,7 +847,7 @@ UniValue GetServicesNames(ServiceFlags services) for (int i = 0; i < 64; ++i) { const uint64_t mask = 1ull << i; if (services_n & mask) { - servicesNames.push_back(serviceFlagToStr(mask, i)); + servicesNames.push_back(serviceFlagToStr(i)); } } |