Skip to content

Commit

Permalink
Added timestamp and height to logging of an accepted block
Browse files Browse the repository at this point in the history
  • Loading branch information
Marko Boben committed Sep 11, 2024
1 parent ef60586 commit 7992d0d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions avalanchego/snow/consensus/snowman/topological.go
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,8 @@ func (ts *Topological) acceptPreferredChild(n *snowmanBlock) error {

ts.ctx.Log.Trace("accepting block",
zap.Stringer("blkID", pref),
zap.Stringer("Timestamp", child.Timestamp()),
zap.Uint64("Height", child.Height()),
)
if err := child.Accept(); err != nil {
return err
Expand Down

0 comments on commit 7992d0d

Please sign in to comment.