From 5fec52bdd076d38751dd8d92ba6e8ef534483f15 Mon Sep 17 00:00:00 2001 From: Rene Vergara Date: Wed, 14 Feb 2024 12:02:53 -0600 Subject: [PATCH] Add host parameter for Zebra server --- app/Main.hs | 3 ++- stack.yaml | 2 +- stack.yaml.lock | 8 ++++---- zenith.cfg | 1 + 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/app/Main.hs b/app/Main.hs index f64421e..70f07d5 100644 --- a/app/Main.hs +++ b/app/Main.hs @@ -203,6 +203,7 @@ main = do nodeUser <- require config "nodeUser" nodePwd <- require config "nodePwd" zebraPort <- require config "zebraPort" + zebraHost <- require config "zebraHost" if not (null args) then do case head args of @@ -216,7 +217,7 @@ main = do " ______ _ _ _ \n |___ / (_) | | | \n / / ___ _ __ _| |_| |__ \n / / / _ \\ '_ \\| | __| '_ \\ \n / /_| __/ | | | | |_| | | |\n /_____\\___|_| |_|_|\\__|_| |_|\n Zcash Full Node CLI v0.4.0" } (root nodeUser nodePwd) - "cli" -> runZenithCLI zebraPort dbName + "cli" -> runZenithCLI zebraHost zebraPort dbName _ -> printUsage else printUsage diff --git a/stack.yaml b/stack.yaml index 4286f97..94817d2 100644 --- a/stack.yaml +++ b/stack.yaml @@ -44,7 +44,7 @@ packages: # extra-deps: [] extra-deps: - git: https://git.vergara.tech/Vergara_Tech/zcash-haskell.git - commit: 09cee9a064219e4be89413ef86341aa18b62be68 + commit: 73d8125b83cda3b69d91770e1617b4a4d6a98c58 - git: https://git.vergara.tech/Vergara_Tech/haskell-hexstring.git commit: fd1ddce73c0ad18a2a4509a299c6e93f8c6c383d - git: https://git.vergara.tech/Vergara_Tech/haskell-foreign-rust.git diff --git a/stack.yaml.lock b/stack.yaml.lock index fe64ec4..a23fcb3 100644 --- a/stack.yaml.lock +++ b/stack.yaml.lock @@ -5,15 +5,15 @@ packages: - completed: - commit: 09cee9a064219e4be89413ef86341aa18b62be68 + commit: 73d8125b83cda3b69d91770e1617b4a4d6a98c58 git: https://git.vergara.tech/Vergara_Tech/zcash-haskell.git name: zcash-haskell pantry-tree: - sha256: 6bf1902a377bf9399442de6f0b89219479fa908e70706918e81b88caa28dc0f5 + sha256: 0b7870345d7ccc65ff51fbfe7c4e579fd497014ab0e0ee2084ba0ad0f68b8b69 size: 1367 - version: 0.4.1 + version: 0.4.2 original: - commit: 09cee9a064219e4be89413ef86341aa18b62be68 + commit: 73d8125b83cda3b69d91770e1617b4a4d6a98c58 git: https://git.vergara.tech/Vergara_Tech/zcash-haskell.git - completed: commit: fd1ddce73c0ad18a2a4509a299c6e93f8c6c383d diff --git a/zenith.cfg b/zenith.cfg index 7a1dc51..3c9bd46 100644 --- a/zenith.cfg +++ b/zenith.cfg @@ -1,4 +1,5 @@ nodeUser = "user" nodePwd = "superSecret" dbName = "zenith.db" +zebraHost = "127.0.0.1" zebraPort = 18232