Wherein we take the firsts steps to integrate with IPFS:
Refactors mcnode/proto to extract network related functionality
Integrates libp2p-kad-dht and connects to the DHT as a client, with bootstrap through the IPFS planets; leeching ok for now per jbenet.
Node.doLookup is modified to use the DHT for looking up peers as a fallback to directory lookup (or when there is no directory), and also caches lookup results with the standard peerstore ttl
Fixes peer api operations to fail consistently with 404 when there is a peer lookup failure.
Adds a /net/lookup/{peerId} endpoint to perform network lookups for debugging purposes
Wherein we take the firsts steps to integrate with IPFS:
/net/lookup/{peerId}
endpoint to perform network lookups for debugging purposesCloses #81
Example of node discovery through DHT: