From 85bf0fef59b1b3469cf3f30859fd7b678b5f67e3 Mon Sep 17 00:00:00 2001 From: Rene Vergara Date: Thu, 28 Sep 2023 13:11:48 -0500 Subject: [PATCH] Fix call to `getblock` --- src/ZGoBackend.hs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ZGoBackend.hs b/src/ZGoBackend.hs index 83539ed..7cfe0c0 100644 --- a/src/ZGoBackend.hs +++ b/src/ZGoBackend.hs @@ -1805,7 +1805,12 @@ generateToken = do getBlockInfo :: BS.ByteString -> BS.ByteString -> SC.Scientific -> IO (Maybe BlockResponse) getBlockInfo nodeUser nodePwd bh = do - blockInfo <- makeZcashCall nodeUser nodePwd "getblock" [Number bh] + blockInfo <- + makeZcashCall + nodeUser + nodePwd + "getblock" + [Number bh, Number $ SC.scientific 1 0] let content = getResponseBody blockInfo :: RpcResponse BlockResponse if isNothing (err content) then return $ result content