From 6a489d37da6ff43501f225e616366c365b89c295 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Tue, 5 Apr 2022 10:25:17 -0300 Subject: [PATCH] some small changes. --- src/main/scala/cliche/Config.scala | 4 +++- src/main/scala/cliche/Main.scala | 5 ++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/scala/cliche/Config.scala b/src/main/scala/cliche/Config.scala index 8591e58..7ddc51b 100644 --- a/src/main/scala/cliche/Config.scala +++ b/src/main/scala/cliche/Config.scala @@ -19,5 +19,7 @@ object Config { val seed = c.as[String]("cliche.seed").split(" ").toList val compactJSON = c.as[Boolean]("cliche.json.compact") - println(s"# configs: network=$network json.compact=$compactJSON") + def print(): Unit = { + println(s"# loaded configs: network=$network json.compact=$compactJSON") + } } diff --git a/src/main/scala/cliche/Main.scala b/src/main/scala/cliche/Main.scala index 7d101ab..3a3c386 100644 --- a/src/main/scala/cliche/Main.scala +++ b/src/main/scala/cliche/Main.scala @@ -78,7 +78,8 @@ object Main { // prevent netty/electrumclient to flood us with logs InternalLoggerFactory.setDefaultFactory(JdkLoggerFactory.INSTANCE) - println("# load objects") + // print the configs we read + Config.print() println("# initializing parameters") var currentChainNode: Option[InetSocketAddress] = None @@ -89,9 +90,7 @@ object Main { var lastNormalResyncStamp: Long = 0L LNParams.connectionProvider = new ClicheConnectionProvider - CommsTower.workers.values.map(_.pair).foreach(CommsTower.forget) - LNParams.logBag = DB.logBag Config.network match {