Skip to content

Commit

Permalink
style(verifier): better startup logs
Browse files Browse the repository at this point in the history
  • Loading branch information
samlaf committed Feb 15, 2025
1 parent 2101c7a commit cf912ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion verify/cert.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ func NewCertVerifier(cfg *Config, log logging.Logger) (*CertVerifier, error) {
// We keep this low (<128) to avoid requiring an archive node.
return nil, fmt.Errorf("confirmation depth must be less than 64; consider using cfg.WaitForFinalization=true instead")
}
log.Info("Enabling certificate verification", "confirmation_depth", cfg.EthConfirmationDepth)

client, err := ethclient.Dial(cfg.RPCURL)
if err != nil {
Expand Down
3 changes: 2 additions & 1 deletion verify/verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,16 @@ func NewVerifier(cfg *Config, l logging.Logger) (*Verifier, error) {
var err error

if cfg.VerifyCerts {
log.Info("Certificate verification against Ethereum state enabled")
cv, err = NewCertVerifier(cfg, l)
if err != nil {
return nil, fmt.Errorf("failed to create cert verifier: %w", err)
}
log.Info("Certificate verification against Ethereum state enabled", "confirmation_depth", cfg.EthConfirmationDepth)
} else {
log.Warn("Certificate verification against Ethereum state disabled")
}

log.Info("Creating blob KZG verifier")
kzgVerifier, err := kzgverifier.NewVerifier(cfg.KzgConfig, encoding.DefaultConfig())
if err != nil {
return nil, fmt.Errorf("failed to create kzg verifier: %w", err)
Expand Down

0 comments on commit cf912ea

Please sign in to comment.