Skip to content

Commit

Permalink
Merge pull request #33 from mboben/songbird-support-debug
Browse files Browse the repository at this point in the history
Added timestamp and height to logging of an accepted block
  • Loading branch information
mboben committed Sep 11, 2024
2 parents 86e2b5c + 7992d0d commit 8058425
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 8058425

Please sign in to comment.