added filter in p3turtle against banned hashes in tunnel requests and search results

This commit is contained in:
csoler 2018-08-22 21:57:56 +02:00
parent 365464623a
commit 3055897425
No known key found for this signature in database
GPG key ID: 7BCA522266C0804C
6 changed files with 50 additions and 0 deletions

View file

@ -142,6 +142,7 @@ class p3FileDatabase: public p3Service, public p3Config, public ftSearch //, pub
bool banFile(const RsFileHash& real_file_hash, const std::string& filename, uint64_t file_size) ;
bool unbanFile(const RsFileHash& real_file_hash);
bool isFileBanned(const RsFileHash& hash) ;
bool getPrimaryBannedFilesList(std::map<RsFileHash,BannedFileEntry>& banned_files) ;
bool trustFriendNodesForBannedFiles() const ;
void setTrustFriendNodesForBannedFiles(bool b) ;