Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Add peers with errors to swarm.peers definition #393

Merged
merged 1 commit into from
Nov 14, 2018

Conversation

olizilla
Copy link
Contributor

js-ipfs-api can encounter individual peer info objects that have newer multiaddrs or, in theory, a new format for PeerId that it cannot parse. Allowing for individiual peerInfo validation errors allows us to return a response which has the right number of peers in, and peerId and multiaddr info for all the other peers that could be validated, along with a info about peers that failed to validate.

See: ipfs-inactive/js-ipfs-http-client#887

js-ipfs-api can encounter individual peer info objects that have newer multiaddrs or, in theory, a new format for PeerId that it cannot parse. Allowing for individiual peerInfo validation errors allows us to return a response which has the right number of peers in, and peerId and multiaddr info for all the other peers that could be validated, along with a info about peers that failed to validate.

See: ipfs-inactive/js-ipfs-http-client#887
@daviddias daviddias merged commit 4b2b7fe into master Nov 14, 2018
@daviddias daviddias deleted the swarm-peer-info-errors branch November 14, 2018 12:28
@ghost ghost removed the in progress label Nov 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants