From 9ba59fa2b290e3611efe49d273e2c506452608eb Mon Sep 17 00:00:00 2001 From: Leo Date: Wed, 27 Oct 2021 01:42:00 +0200 Subject: [PATCH] node/cmd: fix infura warnings The string can appear anywhere. Change-Id: Ib45acc8e3b24308446434b29a709ebf532bcb30a --- node/cmd/guardiand/node.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/cmd/guardiand/node.go b/node/cmd/guardiand/node.go index 883ed778..f4591738 100644 --- a/node/cmd/guardiand/node.go +++ b/node/cmd/guardiand/node.go @@ -386,8 +386,8 @@ func runNode(cmd *cobra.Command, args []string) { // // Insert "I'm a sign, not a cop" meme. // - if strings.HasSuffix(*ethRPC, "mainnet.infura.io") || - strings.HasSuffix(*polygonRPC, "polygon-mainnet.infura.io") { + if strings.Contains(*ethRPC, "mainnet.infura.io") || + strings.Contains(*polygonRPC, "polygon-mainnet.infura.io") { logger.Fatal("Infura is known to send incorrect blocks - please use your own nodes") }