Skip to content

Commit

Permalink
more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
claravanstaden committed Oct 1, 2024
1 parent d0f42f1 commit 69646d3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion relayer/relays/beacon/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package config
import (
"errors"
"fmt"

log "github.com/sirupsen/logrus"
)

type Config struct {
Expand Down Expand Up @@ -90,14 +92,16 @@ func (b BeaconConfig) Validate() error {
}

func (p ParachainConfig) Validate() error {
log.Info("validating parachain settings")
if p.Endpoint == "" {
return errors.New("[endpoint] is not set")
}
if p.MaxWatchedExtrinsics == 0 {
return errors.New("[maxWatchedExtrinsics] is not set")
}
log.WithField("HeaderRedundancy", p.HeaderRedundancy).Info("p.HeaderRedundancy is")
if p.HeaderRedundancy == 0 {
return errors.New("[HeaderRedundancy] is not set")
return errors.New("[headerRedundancy] is not set")
}
return nil
}

0 comments on commit 69646d3

Please sign in to comment.