mirror of
https://github.com/transmission/transmission
synced 2025-03-20 18:55:32 +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 in_addr in_addr;
|
||||||
struct tr_peerIo * io;
|
struct tr_peerIo * io;
|
||||||
|
|
||||||
struct tr_bitfield * banned;
|
|
||||||
struct tr_bitfield * blame;
|
struct tr_bitfield * blame;
|
||||||
struct tr_bitfield * have;
|
struct tr_bitfield * have;
|
||||||
float progress;
|
float progress;
|
||||||
|
|
|
@ -476,8 +476,7 @@ isPieceInteresting( const tr_peermsgs * peer,
|
||||||
|
|
||||||
return ( ( !torrent->info.pieces[piece].dnd ) /* we want it */
|
return ( ( !torrent->info.pieces[piece].dnd ) /* we want it */
|
||||||
&& ( !tr_cpPieceIsComplete( torrent->completion, piece ) ) /* !have */
|
&& ( !tr_cpPieceIsComplete( torrent->completion, piece ) ) /* !have */
|
||||||
&& ( tr_bitfieldHas( peer->info->have, piece ) ) /* peer has it */
|
&& ( tr_bitfieldHas( peer->info->have, piece ) ) ); /* peer has it */
|
||||||
&& ( !tr_bitfieldHas( peer->info->banned, piece ) ) ); /* !banned */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* "interested" means we'll ask for piece data if they unchoke us */
|
/* "interested" means we'll ask for piece data if they unchoke us */
|
||||||
|
|
Loading…
Add table
Reference in a new issue