Content pfp
Content
@
0 reply
0 recast
2 reactions

Dan Romero pfp
Dan Romero
@dwr.eth
Opportunity for a side project: - Take all Hub IPs - Plot on map
4 replies
0 recast
20 reactions

Sanjay pfp
Sanjay
@sanjay
grep for "New Peer ContactInfo" in the logs. Happy to answer any questions.
1 reply
0 recast
2 reactions

Zach pfp
Zach
@zachterrell
do you think it would be worth it to add a rest/grpc endpoint to hubs that return a list of all connected peers?
1 reply
0 recast
0 reaction

Sanjay pfp
Sanjay
@sanjay
Due to the libp2p config, this will be a small subset of all peers that are on the mesh. So for this particular use case, logs are better. But I've wanted the connected peers myself for other reasons. Will add it when I get a chance.
1 reply
0 recast
1 reaction

Zach pfp
Zach
@zachterrell
oh yeah that's right. so there's no function directly inside libp2p to get all peers on the mesh?
1 reply
0 recast
0 reaction

Sanjay pfp
Sanjay
@sanjay
I don't think so? We manually remove entries from the peerStore when we hangup. I'd have to investigate. It's not hard to add this if we wanted it, but don't think it's worth it just for this usecase.
0 reply
0 recast
1 reaction