Ignore:
Timestamp:
Jun 21, 2007, 2:47:26 PM (15 years ago)
Author:
charles
Message:

adding experimental implementation of Tamilmani's `Swift' tit-for-tat algorithm for testing. To tweak or disable, change the values around line 50 of libtransmission/peer.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peerparse.h

    r2149 r2177  
    345345    }
    346346    tr_cpBlockAdd( tor->completion, block );
     347    tr_peerSentBlockToUs( peer, len-8 );
    347348    broadcastCancel( tor, index, begin, len - 8 );
    348349
     
    586587}
    587588
    588 static uint8_t * parseBufHash( tr_peer_t * peer )
     589static const uint8_t * parseBufHash( const tr_peer_t * peer )
    589590{
    590591    if( 48 > peer->pos )
Note: See TracChangeset for help on using the changeset viewer.