Add reachability info to miner info all
This commit is contained in:
parent
3f2a62b5e2
commit
069c39fc12
@ -24,7 +24,7 @@ var netCmd = &cli.Command{
|
|||||||
NetId,
|
NetId,
|
||||||
netFindPeer,
|
netFindPeer,
|
||||||
netScores,
|
netScores,
|
||||||
netReachability,
|
NetReachability,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -204,7 +204,7 @@ var netFindPeer = &cli.Command{
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
var netReachability = &cli.Command{
|
var NetReachability = &cli.Command{
|
||||||
Name: "reachability",
|
Name: "reachability",
|
||||||
Usage: "Print information about reachability from the internet",
|
Usage: "Print information about reachability from the internet",
|
||||||
Action: func(cctx *cli.Context) error {
|
Action: func(cctx *cli.Context) error {
|
||||||
|
@ -63,6 +63,11 @@ var infoAllCmd = &cli.Command{
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fmt.Println("\n#: Reachability")
|
||||||
|
if err := lcli.NetReachability.Action(cctx); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
// Very Verbose info
|
// Very Verbose info
|
||||||
fmt.Println("\n#: Peers")
|
fmt.Println("\n#: Peers")
|
||||||
if err := lcli.NetPeers.Action(cctx); err != nil {
|
if err := lcli.NetPeers.Action(cctx); err != nil {
|
||||||
|
@ -2,7 +2,6 @@ package common
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
basichost "github.com/libp2p/go-libp2p/p2p/host/basic"
|
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
@ -13,6 +12,7 @@ import (
|
|||||||
"github.com/libp2p/go-libp2p-core/network"
|
"github.com/libp2p/go-libp2p-core/network"
|
||||||
"github.com/libp2p/go-libp2p-core/peer"
|
"github.com/libp2p/go-libp2p-core/peer"
|
||||||
swarm "github.com/libp2p/go-libp2p-swarm"
|
swarm "github.com/libp2p/go-libp2p-swarm"
|
||||||
|
basichost "github.com/libp2p/go-libp2p/p2p/host/basic"
|
||||||
ma "github.com/multiformats/go-multiaddr"
|
ma "github.com/multiformats/go-multiaddr"
|
||||||
"go.uber.org/fx"
|
"go.uber.org/fx"
|
||||||
"golang.org/x/xerrors"
|
"golang.org/x/xerrors"
|
||||||
|
Loading…
Reference in New Issue
Block a user