From 50d9878a4ebcda18a3eb61dfbdc850369879a9a5 Mon Sep 17 00:00:00 2001 From: Jacky Wang Date: Thu, 18 Mar 2021 18:37:14 -0700 Subject: [PATCH] [stream] added one more comment on BeaconSyncHook --- node/node_syncing.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/node/node_syncing.go b/node/node_syncing.go index 980a9d66f..2f7e32cc8 100644 --- a/node/node_syncing.go +++ b/node/node_syncing.go @@ -42,6 +42,8 @@ func init() { // TODO: This is a small misc piece of consensus logic. Better put it to consensus module. func (node *Node) BeaconSyncHook() { if node.Consensus.IsLeader() { + // TODO: Instead of leader, it would better be validator do this broadcast since leader do + // not have much idle resources. node.BroadcastCrossLink() } }