Browse Source

qt: Add comment to sorting step in refreshAddressTable

0.10
Wladimir J. van der Laan 11 years ago
parent
commit
5da998e887
  1. 2
      src/qt/addresstablemodel.cpp

2
src/qt/addresstablemodel.cpp

@ -80,6 +80,8 @@ public: @@ -80,6 +80,8 @@ public:
}
}
// qLowerBound() and qUpperBound() require our cachedAddressTable list to be sorted in asc order
// Even though the map is already sorted this re-sorting step is needed because the originating map
// is sorted by binary address, not by base58() address.
qSort(cachedAddressTable.begin(), cachedAddressTable.end(), AddressTableEntryLessThan());
}

Loading…
Cancel
Save