From b23cb227586b440ec734e109af7304b96cd5438d Mon Sep 17 00:00:00 2001 From: ligi Date: Tue, 12 Nov 2019 19:04:45 +0900 Subject: [PATCH] Allow to activate connect to RPCs via command line parameter --- src/main/kotlin/org/ethereum/lists/chains/Main.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/org/ethereum/lists/chains/Main.kt b/src/main/kotlin/org/ethereum/lists/chains/Main.kt index 81e34101..61976648 100644 --- a/src/main/kotlin/org/ethereum/lists/chains/Main.kt +++ b/src/main/kotlin/org/ethereum/lists/chains/Main.kt @@ -3,10 +3,10 @@ package org.ethereum.lists.chains import java.io.File -fun main() { +fun main(args: Array) { File("_data/chains").listFiles()?.forEach { - checkChain(it, false) + checkChain(it, args.contains("rpcConnect")) } }