mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01: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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user