Closed AlyoshaVasilieva closed 6 months ago
You are right... I am reproducing the same results. I will investigate further.
Beleive it or not this actually appears to be an issue with qbittorrent and not torrentfile. I checked the output against the torrent checker from the official bittorrent v2 creator and both output the exact same piece hashes at every size.
Would you be able to file an issue to libtorrent? I've checked and Deluge w/ libtorrent 2.0 has the same issue as qBittorrent, as well as PicoTorrent which reports "Error: v1 and v2 hashes do not describe the same data". All are based on https://github.com/arvidn/libtorrent
Hi @AlyoshaVasilieva It already is an issue on libtorrent https://github.com/arvidn/libtorrent/issues/7439
Repro:
Loading this torrent file into qBittorrent (v4.5.3 libtorrent 2.0.9) and hashing against
1mb-1.bin
results in 98.4% progress, missing the last piece. (Pieces: 64 x 16.0 KiB (have 63)
)Loading this torrent file into qBittorrent and hashing against
1mb-1.bin
results in 0% progress.Loading this torrent file into qBittorrent and hashing against
1mb-1.bin
results in 100% progress.Using torrentfile v0.9.0. It occurred on an earlier version but I didn't come up with a repro. I initially thought this was some kind of last-block issue, but as I wrote this report it seems more like a v2 issue.