Skip to content

Commit

Permalink
fixes issue with ipc path checking (#5577)
Browse files Browse the repository at this point in the history
* fixes issue with ipc path checking
  • Loading branch information
farazdagi committed Apr 22, 2020
1 parent db6dbdc commit 9e6b6bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beacon-chain/powchain/service.go
Expand Up @@ -163,7 +163,7 @@ type Web3ServiceConfig struct {
// NewService sets up a new instance with an ethclient when
// given a web3 endpoint as a string in the config.
func NewService(ctx context.Context, config *Web3ServiceConfig) (*Service, error) {
if !strings.HasPrefix(config.ETH1Endpoint, "ws") && !strings.HasPrefix(config.ETH1Endpoint, "ipc") {
if !strings.HasPrefix(config.ETH1Endpoint, "ws") && !strings.HasSuffix(config.ETH1Endpoint, "ipc") {
return nil, fmt.Errorf(
"powchain service requires either an IPC or WebSocket endpoint, provided %s",
config.ETH1Endpoint,
Expand Down

0 comments on commit 9e6b6bc

Please sign in to comment.