jbenet/go-ipfs — pull request #419 by maybebtc (2014-12-08 20:51:44+00:00)
Title: refactor(peer) some safety features

This PR cleans up the peer package, making it a tiny bit safer to use.

* All peers are created using Peerstore. It is no longer simple to instantiate a naked peer. To create naked peers, use the `mockpeer` package.

(This refactor was performed because of work #416 and a promise I made a long time ago)