Lurker News

Comments (128) 32 threads

Earlier comments
isoprophlex1 reply#
Aren't these magnet links useless without trackers?
r3trohack3r2 replies#
No, most BitTorrent clients support a Kad based DHT for discovering peers.
isoprophlex#
O wow, TIL... thanks!
tredre34 replies#
Pure DHT peer-discovery alone isn't that great but keep in mind that the magnet points to a .torrent file, which usually does contain a list of traditional trackers for the file.
r3trohack3r1 reply#
Why isn’t it great? You’re the first person I’ve met that has made this assertion.

Continue this thread — 1 reply

npteljes#
The magnet doesn't point to a torrent file, but it can contain links to trackers (and other metadata as well).
somat#
fun, trivial trick, the magnet link is not necessary. all you need is the infohash. it is however very slow without the tracker hints.

    echo "magnet:?xt=urn:btih:${info_hash}"
ipfs basically feels like "this is it guys, our entire access pattern is going to be this"
phire#
Actually, a minimal magnet link only contains the infohash which "points" at just the info section of the torrent file. The info section contains the name, list of files and SHA1 hashes for all pieces, and the private flag.

The trackers are outside of info section, I assume so the list of trackers can be modified without effecting the info hash.
Though, some magnet links include an optional xs parameter which points at an http url containing the .torrent file, which would include the trackers.
In my experience, you don't receive the trackers from other peers (though maybe other bittorrent clients can?). However, if at least one peer you discover via DHT supports the peer exchange protocol, and has the trackers, your client can quickly query all the relevant peers.

SergeAx1 reply#
> SQLite compiled into WebAssembly fetches pages of the database hosted on IPFS through HTTP range requests using sql.js-httpvfs layer, and then evaluates your query in your browser.

Please don't do that with the non-static data. This is okay only for archived project, except the moment when my PC downloads SQLite indexes from some blockchain based paifully slow storage for the first time. BTW, how about a user-governed local data cache, is there any recent quirks in browsers for that? LocalStorage is still inconsistent and unreliable, right?

nl1 reply#
IPFS isn't blockchain based. It's slowness is mostly because it is badly implemented.
SergeAx#
TIL, thank you!

All comments shown.