node/cmd: fix infura warnings

The string can appear anywhere.

Change-Id: Ib45acc8e3b24308446434b29a709ebf532bcb30a
This commit is contained in:
Leo 2021-10-27 01:42:00 +02:00 committed by Leopold Schabel
parent 1962873328
commit 9ba59fa2b2
1 changed files with 2 additions and 2 deletions

View File

@ -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")
}