mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 22:26:30 +00:00
89d89681a3
It adds support for metrics (expvar and Prometheus) along with docker-compose files to run a Whisper test cluster.
12 lines
249 B
Go
12 lines
249 B
Go
package node
|
|
|
|
import "github.com/ethereum/go-ethereum/p2p"
|
|
|
|
func getNodePeerRemoteAddresses(server *p2p.Server) []string {
|
|
var ret []string
|
|
for _, peer := range server.PeersInfo() {
|
|
ret = append(ret, peer.Network.RemoteAddress)
|
|
}
|
|
return ret
|
|
}
|