From 783f12f9877c89421fe57652e61c463a871d32af Mon Sep 17 00:00:00 2001 From: Ganesh Vanahalli Date: Fri, 12 Jul 2024 16:21:28 -0500 Subject: [PATCH] address PR comments --- staker/stateless_block_validator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/staker/stateless_block_validator.go b/staker/stateless_block_validator.go index e263e1c402..ec235c4bf5 100644 --- a/staker/stateless_block_validator.go +++ b/staker/stateless_block_validator.go @@ -432,7 +432,7 @@ func (v *StatelessBlockValidator) Start(ctx_in context.Context) error { for i, spawner := range v.execSpawners { if err := spawner.Start(ctx_in); err != nil { if u, parseErr := url.Parse(v.config.ValidationServerConfigs[i].URL); parseErr == nil { - if u.Scheme == "http" || u.Scheme == "https" { + if u.Scheme != "ws" && u.Scheme != "wss" { return fmt.Errorf("validation server's url scheme is unsupported, it should either be ws or wss, url:%s err: %w", v.config.ValidationServerConfigs[i].URL, err) } }