forked from premiere/premiere-libtorrent
merkle tree torrents use 64 kiB piece sizes
This commit is contained in:
parent
1100a4996d
commit
84426fd0a3
|
@ -257,7 +257,7 @@ merkle
|
||||||
be opened in clients that don't specifically support merkle torrents.
|
be opened in clients that don't specifically support merkle torrents.
|
||||||
The benefit is that the resulting torrent file will be much smaller and
|
The benefit is that the resulting torrent file will be much smaller and
|
||||||
not grow with more pieces. When this option is specified, it is
|
not grow with more pieces. When this option is specified, it is
|
||||||
recommended to have a 16 kiB piece size.
|
recommended to have a fairly small piece size, say 64 kiB.
|
||||||
|
|
||||||
generate()
|
generate()
|
||||||
----------
|
----------
|
||||||
|
|
|
@ -162,7 +162,7 @@ namespace libtorrent
|
||||||
}
|
}
|
||||||
else if (piece_size == 0 && m_merkle_torrent)
|
else if (piece_size == 0 && m_merkle_torrent)
|
||||||
{
|
{
|
||||||
piece_size = 16*1024;
|
piece_size = 64*1024;
|
||||||
}
|
}
|
||||||
|
|
||||||
// make sure the size is an even power of 2
|
// make sure the size is an even power of 2
|
||||||
|
|
Loading…
Reference in New Issue