1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-19 18:25:38 +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:
Charles Kerr 2008-03-01 14:32:35 +00:00
parent 0788bc37ed
commit f1c3b160af
2 changed files with 1 additions and 3 deletions

View file

@ -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;

View file

@ -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 */