Bencode.decode returns a illegible bytestring for peers, rather than a peers list. This makes the top level Bdict pretty hard to read and test. There is nothing preventing this as far as I understand. We do a 2 pass decode on the structure with getPeerResponse, which can be avoided.
Bencode.decode
returns a illegible bytestring for peers, rather than a peers list. This makes the top level Bdict pretty hard to read and test. There is nothing preventing this as far as I understand. We do a 2 pass decode on the structure withgetPeerResponse
, which can be avoided.See the screenshot for a failed test.