Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
huangzhen1997 committed Sep 23, 2024
1 parent d2278b9 commit fb7023f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions core/chains/evm/config/toml/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -959,11 +959,12 @@ func (n *Node) ValidateConfig() (err error) {

// relax the check here as WSURL can potentially be empty if LogBroadcaster is disabled (checked in EVMConfig Validation)
if n.WSURL != nil && !n.WSURL.IsZero() {
switch n.WSURL.Scheme {
case "ws", "wss":
default:
err = multierr.Append(err, commonconfig.ErrInvalid{Name: "WSURL", Value: n.WSURL.Scheme, Msg: "must be ws or wss"})
}
n.WSURL = nil
//switch n.WSURL.Scheme {
//case "ws", "wss":
//default:
// err = multierr.Append(err, commonconfig.ErrInvalid{Name: "WSURL", Value: n.WSURL.Scheme, Msg: "must be ws or wss"})
//}
}

if n.HTTPURL == nil {
Expand Down

0 comments on commit fb7023f

Please sign in to comment.