Skip to content

Commit

Permalink
address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangchiqing committed Sep 7, 2023
1 parent b58079b commit cafa893
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engine/execution/ingestion/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ func (e *Engine) executeBlock(
Hex("execution_data_id", receipt.ExecutionResult.ExecutionDataID[:]).
Bool("sealed", isExecutedBlockSealed).
Bool("state_changed", finalEndState != *executableBlock.StartState).
Uint64("num_txs", transactionCount(receipt.ExecutionResult)).
Uint64("num_txs", nonSystemTransactionCount(receipt.ExecutionResult)).
Bool("broadcasted", broadcasted).
Int64("timeSpentInMS", time.Since(startedAt).Milliseconds()).
Msg("block executed")
Expand All @@ -719,7 +719,7 @@ func (e *Engine) executeBlock(

}

func transactionCount(result flow.ExecutionResult) uint64 {
func nonSystemTransactionCount(result flow.ExecutionResult) uint64 {
count := uint64(0)
for _, chunk := range result.Chunks {
count += chunk.NumberOfTransactions
Expand Down

0 comments on commit cafa893

Please sign in to comment.