From 611f1fdd20ba3d7ebef5956f79e4532611a194b0 Mon Sep 17 00:00:00 2001 From: Rene Vergara Date: Tue, 27 Feb 2024 08:32:32 -0600 Subject: [PATCH] Update database file path config variable --- app/Main.hs | 4 ++-- zenith.cfg | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Main.hs b/app/Main.hs index 70f07d5..d3c271b 100644 --- a/app/Main.hs +++ b/app/Main.hs @@ -199,7 +199,7 @@ main :: IO () main = do config <- load ["zenith.cfg"] args <- getArgs - dbName <- require config "dbName" + dbFilePath <- require config "dbFilePath" nodeUser <- require config "nodeUser" nodePwd <- require config "nodePwd" zebraPort <- require config "zebraPort" @@ -217,7 +217,7 @@ main = do " ______ _ _ _ \n |___ / (_) | | | \n / / ___ _ __ _| |_| |__ \n / / / _ \\ '_ \\| | __| '_ \\ \n / /_| __/ | | | | |_| | | |\n /_____\\___|_| |_|_|\\__|_| |_|\n Zcash Full Node CLI v0.4.0" } (root nodeUser nodePwd) - "cli" -> runZenithCLI zebraHost zebraPort dbName + "cli" -> runZenithCLI zebraHost zebraPort dbFilePath _ -> printUsage else printUsage diff --git a/zenith.cfg b/zenith.cfg index 3c9bd46..efedae5 100644 --- a/zenith.cfg +++ b/zenith.cfg @@ -1,5 +1,5 @@ nodeUser = "user" nodePwd = "superSecret" -dbName = "zenith.db" +dbFilePath = "zenith.db" zebraHost = "127.0.0.1" zebraPort = 18232