Skip to content

Commit

Permalink
add custom log for block latency (#5)
Browse files Browse the repository at this point in the history
block latency = next proposal created - current block time created
  • Loading branch information
zsystm authored Jan 2, 2025
1 parent 646eb6a commit 4cb7d47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions consensus/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -1224,6 +1224,7 @@ func (cs *State) defaultDecideProposal(height int64, round int32) {
cs.Logger.Error("unable to create proposal block part set", "error", err)
return
}
cs.Logger.Info("Created proposal block", "createdAt(unixnanao)", time.Now().UTC().UnixNano(), "height", height, "round", round, "blockSize", block.Size(), "txs", len(block.Txs))
}

// Flush the WAL. Otherwise, we may not recompute the same proposal to sign,
Expand Down

0 comments on commit 4cb7d47

Please sign in to comment.