revert change on insertHook

pull/3610/head
Rongjian Lan 4 years ago
parent faf89361d6
commit e1d072b3ac
  1. 10
      hmy/downloader/beaconhelper.go

@ -128,12 +128,10 @@ func (bh *beaconHelper) insertLastMileBlocks() (inserted int, bn uint64, err err
return return
} }
bh.logger.Info().Uint64("number", b.NumberU64()).Msg("Inserted block from beacon pub-sub") bh.logger.Info().Uint64("number", b.NumberU64()).Msg("Inserted block from beacon pub-sub")
// TODO: clean up insertHook since for beacon chain sync, we shouldn't broadcast crosslinks for all sync nodes.
// Crosslink broadcasting is a live operation related to the beacon consensus, which should only if bh.insertHook != nil {
// be triggered when there is a new beacon block produced. bh.insertHook()
//if bh.insertHook != nil { }
// bh.insertHook()
//}
inserted++ inserted++
bn++ bn++
} }

Loading…
Cancel
Save