0.1.1 • Published 9 years ago
ipfs-railing v0.1.1
node-ipfs-railing
Node.js IPFS Implementation of the railing process of a Node through a bootstrap peer list
Usage
var Bootstrap = require('ipfs-railing')
var options = {
verify: true // to verify that we can indeed open a connection to that peer, before declaring it as peer found
}
var peerList = <your custom peerList> || Bootstrap.default
var b = new Bootstrap(Bootstrap.default, options, swarm)
b.on('peer', function (peer) {
// found a new peer
})