Adam Babik 89d89681a3
Add support for metrics (#558)
It adds support for metrics (expvar and Prometheus) along with docker-compose files to run a Whisper test cluster.
2018-01-30 12:51:48 +01:00

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
}