monotorrent
monotorrent copied to clipboard
Faild to restore FastResume (v3.0.0-beta-0106)
If InfoHashes have V1 and V2, code "InfoHashes == fastResume.InfoHashes" (TorrentManager.cs: line 1,105) is always failed. Because "InfoHashes" contains V1 and V2, but "fastResume.InfoHashes" contains only V1 (or V2).
Here is the Encode method of FastResume. (FastResume.cs: line 115) { InfoHashKey, new BEncodedString(InfoHashes.V1OrV2.Span.ToArray ()) },
Improvement plan Plan A: Encode(Load) V1 and V2 hashes in FastResume. Plan B: Compare V1OrV2 hashes. (ex. "InfoHashes.V1OrV2 == fastResume.InfoHashes.V1OrV2")
Thx for reading my childish English and developing a wonderful library! :)