cmn "github.com/tendermint/tmlibs/common"
"github.com/tendermint/tmlibs/flowrate"
- cfg "github.com/vapor/config"
- "github.com/vapor/consensus"
- "github.com/vapor/p2p/connection"
- "github.com/vapor/p2p/signlib"
+ cfg "github.com/bytom/vapor/config"
+ "github.com/bytom/vapor/consensus"
+ "github.com/bytom/vapor/p2p/connection"
+ "github.com/bytom/vapor/p2p/signlib"
)
// peerConn contains the raw connection and its config.
return p.isLAN
}
+// Moniker returns peer's moniker.
+func (p *Peer) Moniker() string {
+ return p.NodeInfo.Moniker
+}
+
// PubKey returns peer's public key.
func (p *Peer) PubKey() string {
return p.conn.(*connection.SecretConnection).RemotePubKey().String()