Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

swarm.peers return type is different in js-ipfs and js-ipfs-api #1248

@alanshaw

Description

@alanshaw

swarm.peers returns an object with a peer property. In the spec it says this will be a PeerInfo object, and it is in js-ipfs, but if you call via js-ipfs-api you'll get back a PeerId (js-ipfs http converts the PeerInfo to a PeerId).

Just wondering if this is expected, and if not, what is the desired result?

Metadata

Metadata

Assignees

Labels

P1High: Likely tackled by core team if no one steps upexp/noviceSomeone with a little familiarity can pick upkind/bugA bug in existing code (including security flaws)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions