fixed a few bugs in ban file list management

This commit is contained in:
csoler 2018-08-25 20:52:06 +02:00
parent b5eabf7af7
commit 2fab33d37f
No known key found for this signature in database
GPG key ID: 7BCA522266C0804C
2 changed files with 18 additions and 9 deletions

View file

@ -269,7 +269,7 @@ class p3FileDatabase: public p3Service, public p3Config, public ftSearch //, pub
std::map<RsPeerId,PeerBannedFilesEntry> mPeerBannedFiles ; // records of which files other peers ban, stored as H(H(f))
std::set<RsFileHash> mBannedFileList ; // list of banned hashes. This include original hashs and H(H(f)) when coming from friends.
bool mTrustFriendNodesForBannedFiles ;
bool mBannedFilesChanged;
bool mBannedFileListNeedsUpdate;
time_t mLastPrimaryBanListChangeTimeStamp;
void locked_sendBanInfo(const RsPeerId& pid);