add comments

pull/1182/head
Minh Doan 5 years ago committed by Minh Doan
parent d1114193b3
commit 2b11284b9d
  1. 1
      node/node_explorer.go

@ -85,6 +85,7 @@ func (node *Node) ExplorerMessageHandler(payload []byte) {
// AddNewBlockForExplorer add new block for explorer.
func (node *Node) AddNewBlockForExplorer() {
utils.GetLogInstance().Info("Add new block for explorer")
// Search for the next block in PbftLog and commit the block into blockchain for explorer node.
for {
blocks := node.Consensus.PbftLog.GetBlocksByNumber(node.Blockchain().CurrentBlock().NumberU64() + 1)
if len(blocks) > 1 {

Loading…
Cancel
Save