Skip to content

Commit

Permalink
internal/ethapi: add debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
buddh0 committed Aug 16, 2024
1 parent e339e24 commit 762e85e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/ethapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,10 @@ func (s *BlockChainAPI) getFinalizedNumber(ctx context.Context, probabilisticFin
confirmedValSet[lastHeader.Coinbase] = struct{}{}
}

return max(fastFinalizedHeader.Number.Int64(), lastHeader.Number.Int64()), nil
finalizedBlockNumber := max(fastFinalizedHeader.Number.Int64(), lastHeader.Number.Int64())
log.Debug("getFinalizedNumber", "fastFinalizedHeight", fastFinalizedHeader.Number.Int64(), "probabilisticFinalizedHeight",
lastHeader.Number.Int64(), "finalizedBlockNumber", finalizedBlockNumber, "len(confirmedValSet)", len(confirmedValSet))
return finalizedBlockNumber, nil
}

// GetFinalizedHeader returns the requested finalized block header.
Expand Down

0 comments on commit 762e85e

Please sign in to comment.