watcher configuration; super node versioning

This commit is contained in:
Ian Norden
2020-02-25 16:38:46 -06:00
parent 25aa4634e9
commit 330a083749
13 changed files with 381 additions and 77 deletions
+4
View File
@@ -83,6 +83,10 @@ func makePropertiesReader(client core.RPCClient) IPropertiesReader {
}
func getNodeType(client core.RPCClient) core.NodeType {
// TODO: fix this
// This heuristics for figuring out the node type are not usefull...
// for example we often port forward remote nodes to localhost
// and geth does not have to expose the admin api...
if strings.Contains(client.IpcPath(), "infura") {
return core.INFURA
}