Changeset 5179


Ignore:
Timestamp:
Mar 1, 2008, 2:32:35 PM (14 years ago)
Author:
charles
Message:

remove `banned' field for per-piece-per-peer banning. this has been unused since the three-strikes rule went in place.

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-mgr-private.h

    r4989 r5179  
    7272    struct tr_peerIo * io;
    7373
    74     struct tr_bitfield * banned;
    7574    struct tr_bitfield * blame;
    7675    struct tr_bitfield * have;
  • trunk/libtransmission/peer-msgs.c

    r5178 r5179  
    477477    return ( ( !torrent->info.pieces[piece].dnd )               /* we want it */
    478478          && ( !tr_cpPieceIsComplete( torrent->completion, piece ) ) /* !have */
    479           && ( tr_bitfieldHas( peer->info->have, piece ) )     /* peer has it */
    480           && ( !tr_bitfieldHas( peer->info->banned, piece ) ) );   /* !banned */
     479          && ( tr_bitfieldHas( peer->info->have, piece ) ) );  /* peer has it */
    481480}
    482481
Note: See TracChangeset for help on using the changeset viewer.