File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -819,9 +819,8 @@ QString formatServicesStr(quint64 mask)
819
819
{
820
820
QStringList strList;
821
821
822
- // Just scan the last 8 bits for now.
823
- for (int i = 0 ; i < 8 ; i++) {
824
- uint64_t check = 1 << i;
822
+ for (int i = 0 ; i < 64 ; i++) {
823
+ uint64_t check = 1LL << i;
825
824
if (mask & check)
826
825
{
827
826
switch (check)
@@ -838,8 +837,15 @@ QString formatServicesStr(quint64 mask)
838
837
case NODE_WITNESS:
839
838
strList.append (" WITNESS" );
840
839
break ;
840
+ case NODE_NETWORK_LIMITED:
841
+ strList.append (" NETWORK_LIMITED" );
842
+ break ;
841
843
default :
842
- strList.append (QString (" %1[%2]" ).arg (" UNKNOWN" ).arg (check));
844
+ if (i < 8 ) {
845
+ strList.append (QString (" %1[%2]" ).arg (" UNKNOWN" ).arg (check));
846
+ } else {
847
+ strList.append (QString (" %1[2^%2]" ).arg (" UNKNOWN" ).arg (i));
848
+ }
843
849
}
844
850
}
845
851
}
You can’t perform that action at this time.
0 commit comments