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)
819819{
820820 QStringList strList;
821821
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;
825824 if (mask & check)
826825 {
827826 switch (check)
@@ -838,8 +837,15 @@ QString formatServicesStr(quint64 mask)
838837 case NODE_WITNESS:
839838 strList.append (" WITNESS" );
840839 break ;
840+ case NODE_NETWORK_LIMITED:
841+ strList.append (" NETWORK_LIMITED" );
842+ break ;
841843 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+ }
843849 }
844850 }
845851 }
You can’t perform that action at this time.
0 commit comments