20 #ifndef BTCHUNKSELECTOR_H
21 #define BTCHUNKSELECTOR_H
24 #include <util/timer.h>
25 #include <interfaces/chunkselectorinterface.h>
35 class PieceDownloader;
44 std::list<Uint32> chunks;
79 bool selectRange(Uint32 & from,Uint32 & to,Uint32 max_len)
override;
81 Uint32 leastPeers(
const std::list<Uint32> & lp,Uint32 alternative,Uint32 max_peers_per_chunk);