Bugfix: GUI: Recognise NETWORK_LIMITED in formatServicesStr
This commit is contained in:
1 parent
8afa602f30
commit
df77de8c21
1 file changed
+10
-4
+10
-4
@@ -819,9 +819,8 @@ QString formatServicesStr(quint64 mask)
|
|||||||
{
|
{
|
||||||
QStringList strList;
|
QStringList strList;
|
||||||
|
|
||||||
// Just scan the last 8 bits for now.
|
for (int i = 0; i < 64; i++) {
|
||||||
for (int i = 0; i < 8; i++) {
|
uint64_t check = 1LL << i;
|
||||||
uint64_t check = 1 << i;
|
|
||||||
if (mask & check)
|
if (mask & check)
|
||||||
{
|
{
|
||||||
switch (check)
|
switch (check)
|
||||||
@@ -838,8 +837,15 @@ QString formatServicesStr(quint64 mask)
|
|||||||
case NODE_WITNESS:
|
case NODE_WITNESS:
|
||||||
strList.append("WITNESS");
|
strList.append("WITNESS");
|
||||||
break;
|
break;
|
||||||
|
case NODE_NETWORK_LIMITED:
|
||||||
|
strList.append("NETWORK_LIMITED");
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
strList.append(QString("%1[%2]").arg("UNKNOWN").arg(check));
|
if (i < 8) {
|
||||||
|
strList.append(QString("%1[%2]").arg("UNKNOWN").arg(check));
|
||||||
|
} else {
|
||||||
|
strList.append(QString("%1[2^%2]").arg("UNKNOWN").arg(i));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user