From ce8bd1d78002209227d283a89c08775fa06bc431 Mon Sep 17 00:00:00 2001 From: David Date: Thu, 21 Sep 2023 13:38:45 +0800 Subject: [PATCH] feat(proposer): update prover endpoint scheme check (#400) --- proposer/prover_selector/eth_fee_eoa_selector.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proposer/prover_selector/eth_fee_eoa_selector.go b/proposer/prover_selector/eth_fee_eoa_selector.go index bd091d36b..9ce77ca21 100644 --- a/proposer/prover_selector/eth_fee_eoa_selector.go +++ b/proposer/prover_selector/eth_fee_eoa_selector.go @@ -22,6 +22,7 @@ import ( var ( httpScheme = "http" + httpsScheme = "https" errEmptyProverEndpoints = errors.New("empty prover endpoints") errUnableToFindProver = errors.New("unable to find prover") ) @@ -57,7 +58,7 @@ func NewETHFeeEOASelector( } for _, endpoint := range proverEndpoints { - if endpoint.Scheme != httpScheme { + if endpoint.Scheme != httpScheme && endpoint.Scheme != httpsScheme { return nil, fmt.Errorf("invalid prover endpoint %s", endpoint) } }