mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-26 18:04:22 +00:00
Added NodeInfo (still need to add to AddrBook); Proper Handshake
This commit is contained in:
+1
-1
@@ -42,7 +42,7 @@ func NetInfo() (*ctypes.ResponseNetInfo, error) {
|
||||
peers := []ctypes.Peer{}
|
||||
for _, peer := range p2pSwitch.Peers().List() {
|
||||
peers = append(peers, ctypes.Peer{
|
||||
Address: peer.Connection().RemoteAddress.String(),
|
||||
NodeInfo: *peer.NodeInfo,
|
||||
IsOutbound: peer.IsOutbound(),
|
||||
})
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ type ResponseNetInfo struct {
|
||||
}
|
||||
|
||||
type Peer struct {
|
||||
Address string
|
||||
types.NodeInfo
|
||||
IsOutbound bool
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user