mirror of
https://github.com/transmission/transmission
synced 2025-03-19 10:15:36 +00:00
remove `banned' field for per-piece-per-peer banning. this has been unused since the three-strikes rule went in place.
This commit is contained in:
parent
0788bc37ed
commit
f1c3b160af
2 changed files with 1 additions and 3 deletions
|
@ -71,7 +71,6 @@ typedef struct tr_peer
|
|||
struct in_addr in_addr;
|
||||
struct tr_peerIo * io;
|
||||
|
||||
struct tr_bitfield * banned;
|
||||
struct tr_bitfield * blame;
|
||||
struct tr_bitfield * have;
|
||||
float progress;
|
||||
|
|
|
@ -476,8 +476,7 @@ isPieceInteresting( const tr_peermsgs * peer,
|
|||
|
||||
return ( ( !torrent->info.pieces[piece].dnd ) /* we want it */
|
||||
&& ( !tr_cpPieceIsComplete( torrent->completion, piece ) ) /* !have */
|
||||
&& ( tr_bitfieldHas( peer->info->have, piece ) ) /* peer has it */
|
||||
&& ( !tr_bitfieldHas( peer->info->banned, piece ) ) ); /* !banned */
|
||||
&& ( tr_bitfieldHas( peer->info->have, piece ) ) ); /* peer has it */
|
||||
}
|
||||
|
||||
/* "interested" means we'll ask for piece data if they unchoke us */
|
||||
|
|
Loading…
Add table
Reference in a new issue