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 f156a12
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", "LatestBlockNumber", rpc.LatestBlockNumber, "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 f156a12

Please sign in to comment.