From 3ccee4ecb65394be3bb964b0b94c4a3f741c15e2 Mon Sep 17 00:00:00 2001 From: Rene Vergara Date: Mon, 12 Feb 2024 15:09:12 -0600 Subject: [PATCH] Add new config parameter for Zebra port --- app/Main.hs | 3 ++- zenith.cfg | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Main.hs b/app/Main.hs index f0faf47..f64421e 100644 --- a/app/Main.hs +++ b/app/Main.hs @@ -202,6 +202,7 @@ main = do dbName <- require config "dbName" nodeUser <- require config "nodeUser" nodePwd <- require config "nodePwd" + zebraPort <- require config "zebraPort" if not (null args) then do case head args of @@ -215,7 +216,7 @@ main = do " ______ _ _ _ \n |___ / (_) | | | \n / / ___ _ __ _| |_| |__ \n / / / _ \\ '_ \\| | __| '_ \\ \n / /_| __/ | | | | |_| | | |\n /_____\\___|_| |_|_|\\__|_| |_|\n Zcash Full Node CLI v0.4.0" } (root nodeUser nodePwd) - "cli" -> runZenithCLI dbName + "cli" -> runZenithCLI zebraPort dbName _ -> printUsage else printUsage diff --git a/zenith.cfg b/zenith.cfg index 77461ba..7a1dc51 100644 --- a/zenith.cfg +++ b/zenith.cfg @@ -1,3 +1,4 @@ nodeUser = "user" nodePwd = "superSecret" dbName = "zenith.db" +zebraPort = 18232