ipfs / helia

An implementation of IPFS in JavaScript
https://helia.io
Other
811 stars 81 forks source link

fix: http blockbroker loads gateways from routing #519

Closed achingbrain closed 2 months ago

achingbrain commented 2 months ago

Use the new http gateway block broker to load gateways from the routing.

If we can find http gateways for a block we now use it, falling back to the default list of gateways if the routing is slow or it gives providers that fail to supply the block.

One change here is that unless you are using sessions, trustless gateways become disposable so we can't sort them by reliability any more.

I'm not sure if we have any stats on the real-world impact of being able to do this? It may be more relevant for sessions anyway, I think.

Change checklist