OSDN Git Service
(root)
/
bytom
/
vapor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5edb7b2
)
fk
author
HAOYUatHZ
<haoyu@protonmail.com>
Fri, 16 Aug 2019 09:17:18 +0000
(17:17 +0800)
committer
HAOYUatHZ
<haoyu@protonmail.com>
Fri, 16 Aug 2019 09:17:18 +0000
(17:17 +0800)
toolbar/precog/monitor/monitor.go
patch
|
blob
|
history
diff --git
a/toolbar/precog/monitor/monitor.go
b/toolbar/precog/monitor/monitor.go
index
01fabd0
..
f2faf04
100644
(file)
--- a/
toolbar/precog/monitor/monitor.go
+++ b/
toolbar/precog/monitor/monitor.go
@@
-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)
+
//
}
}
}