8

Cleanup `net peers` output · Issue #1184 · ChainSafe/forest · GitHub

 3 years ago
source link: https://github.com/ChainSafe/forest/issues/1184
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Copy link

Task lists! Give feedback

Member

cryptoquick commented 18 days ago

edited

Task summary
net peers prints a lot of extraneous information that's either redundant or not useful.

Acceptance criteria

  • net peers has no duplicate Multiaddrs
  • net peers does not show localhost or loopback ip4 and ip6 routes

Other information and links
Compare the output of lotus net peers:

...with the output of forest net peers:

A lotta extra junk!

  • Be sure to note: It's okay to have multiple routes, for example, we might have an external ip4 route and an external ip6 route to a peer, so this task isn't as simple as selecting a single route per peer, we still need to return the vector, even though the majority are a single external ip4 route.

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK