Golang implemented sidechain for Bytom
Revision | 7be32e0bad479fa17710a7617322b83350c7285b (tree) |
---|---|
Time | 2019-08-19 13:56:32 |
Author | HAOYUatHZ <haoyu@prot...> |
Commiter | HAOYUatHZ |
add ping
@@ -5,6 +5,7 @@ import ( | ||
5 | 5 | "fmt" |
6 | 6 | |
7 | 7 | "github.com/jinzhu/gorm" |
8 | + log "github.com/sirupsen/logrus" | |
8 | 9 | |
9 | 10 | "github.com/vapor/crypto/ed25519/chainkd" |
10 | 11 | "github.com/vapor/netsync/peers" |
@@ -64,6 +65,8 @@ func (m *monitor) savePeerInfo(peerInfo *peers.PeerInfo) error { | ||
64 | 65 | return err |
65 | 66 | } |
66 | 67 | |
68 | + log.Debug("peerInfo.Ping:", peerInfo.Ping) | |
69 | + | |
67 | 70 | ormNodeLiveness := &orm.NodeLiveness{ |
68 | 71 | NodeID: ormNode.ID, |
69 | 72 | BestHeight: ormNode.BestHeight, |