node/cmd: fix infura warnings
The string can appear anywhere. Change-Id: Ib45acc8e3b24308446434b29a709ebf532bcb30a
This commit is contained in:
parent
1962873328
commit
9ba59fa2b2
|
@ -386,8 +386,8 @@ func runNode(cmd *cobra.Command, args []string) {
|
||||||
//
|
//
|
||||||
// Insert "I'm a sign, not a cop" meme.
|
// Insert "I'm a sign, not a cop" meme.
|
||||||
//
|
//
|
||||||
if strings.HasSuffix(*ethRPC, "mainnet.infura.io") ||
|
if strings.Contains(*ethRPC, "mainnet.infura.io") ||
|
||||||
strings.HasSuffix(*polygonRPC, "polygon-mainnet.infura.io") {
|
strings.Contains(*polygonRPC, "polygon-mainnet.infura.io") {
|
||||||
logger.Fatal("Infura is known to send incorrect blocks - please use your own nodes")
|
logger.Fatal("Infura is known to send incorrect blocks - please use your own nodes")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue