Fix top/recent peers cache write error.

This commit is contained in:
John Preston 2024-12-19 13:51:41 +04:00
parent f93f4c72f7
commit e33ca9d316
2 changed files with 2 additions and 2 deletions

View file

@ -85,7 +85,7 @@ QByteArray RecentPeers::serialize() const {
auto stream = Serialize::ByteArrayWriter(size);
stream
<< quint32(AppVersion)
<< quint32(_list.size());
<< quint32(count);
for (const auto &peer : list) {
Serialize::writePeer(stream, peer);
}

View file

@ -264,7 +264,7 @@ QByteArray TopPeers::serialize() const {
stream
<< quint32(AppVersion)
<< quint32(_disabled ? 1 : 0)
<< quint32(_list.size());
<< quint32(count);
for (const auto &top : list) {
Serialize::writePeer(stream, top.peer);
stream << SerializeRating(top.rating);