mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-16 03:12:41 +00:00
Adds peers and connected_peers to lighthouse http API (#1030)
This commit is contained in:
@@ -65,7 +65,7 @@ pub fn get_peer_list<T: BeaconChainTypes>(
|
||||
let connected_peers: Vec<String> = network
|
||||
.peers
|
||||
.read()
|
||||
.connected_peers()
|
||||
.connected_peer_ids()
|
||||
.map(PeerId::to_string)
|
||||
.collect();
|
||||
ResponseBuilder::new(&req)?.body_no_ssz(&connected_peers)
|
||||
|
||||
Reference in New Issue
Block a user