aboutsummaryrefslogtreecommitdiff
path: root/src/qt/guiutil.cpp
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2020-05-29 18:49:26 +0200
committerVasil Dimov <vd@FreeBSD.org>2020-05-29 18:49:26 +0200
commitfbacad1880341ace31f669530c66d4e322d19235 (patch)
tree39b4b49f13a0899c3232dd6885980f866afa611f /src/qt/guiutil.cpp
parentf2e2c5ebcccf8d656b850c28452e6e652934f36b (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/qt/guiutil.cpp')
-rw-r--r--src/qt/guiutil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp
index e78e400f07..d2892f32c7 100644
--- a/src/qt/guiutil.cpp
+++ b/src/qt/guiutil.cpp
@@ -759,7 +759,7 @@ QString formatServicesStr(quint64 mask)
uint64_t check = 1ull << i;
if (mask & check)
{
- strList.append(QString::fromStdString(serviceFlagToStr(mask, i)));
+ strList.append(QString::fromStdString(serviceFlagToStr(i)));
}
}