Skip to content

Commit

Permalink
update logs
Browse files Browse the repository at this point in the history
  • Loading branch information
MonikaCat committed Sep 14, 2023
1 parent 33ba1a3 commit e830607
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions parser/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,31 +116,31 @@ func (w Worker) Process(height int64) error {
return fmt.Errorf("failed to get block from node: %s", err)
}
elapsed := time.Since(start).Seconds()
w.logger.Debug("******** processing block ********", "height", height, "time", elapsed)
w.logger.Debug("******** processing block ********", "time", elapsed)

start2 := time.Now()
events, err := w.node.BlockResults(height)
if err != nil {
return fmt.Errorf("failed to get block results from node: %s", err)
}
elapsed2 := time.Since(start2).Seconds()
w.logger.Debug("******** processing block results ********", "height", height, "time", elapsed2)
w.logger.Debug("******** processing block results ********", "time", elapsed2)

start3 := time.Now()
txs, err := w.node.Txs(block)
if err != nil {
return fmt.Errorf("failed to get transactions for block: %s", err)
}
elapsed3 := time.Since(start3).Seconds()
w.logger.Debug("******** processing transactions for block ********", "height", height, "time", elapsed3)
w.logger.Debug("******** processing transactions for block ********", "time", elapsed3)

start4 := time.Now()
vals, err := w.node.Validators(height)
if err != nil {
return fmt.Errorf("failed to get validators for block: %s", err)
}
elapsed4 := time.Since(start4).Seconds()
w.logger.Debug("******** processing validators for block ********", "height", height, "time", elapsed4)
w.logger.Debug("******** processing validators for block ********", "time", elapsed4)

return w.ExportBlock(block, events, txs, vals)
}
Expand Down

0 comments on commit e830607

Please sign in to comment.