OSDN Git Service

fk
authorHAOYUatHZ <haoyu@protonmail.com>
Fri, 16 Aug 2019 09:17:18 +0000 (17:17 +0800)
committerHAOYUatHZ <haoyu@protonmail.com>
Fri, 16 Aug 2019 09:17:18 +0000 (17:17 +0800)
toolbar/precog/monitor/monitor.go

index 01fabd0..f2faf04 100644 (file)
@@ -175,9 +175,9 @@ func (m *monitor) checkStatusRoutine() {
                }
                log.Info("bestHeight", bestHeight)
 
-               msg := struct{ msgs.BlockchainMessage }{&msgs.GetBlockMessage{Height: bestHeight + 1}}
-               for _, peer := range m.sw.GetPeers().List() {
-                       peers.SendMsg(peer.ID(), msgs.BlockchainChannel, msg)
-               }
+               // msg := struct{ msgs.BlockchainMessage }{&msgs.GetBlockMessage{Height: bestHeight + 1}}
+               // for _, peer := range m.sw.GetPeers().List() {
+               //      peers.SendMsg(peer.ID(), msgs.BlockchainChannel, msg)
+               // }
        }
 }