Fix call to `getblock`

This commit is contained in:
Rene Vergara 2023-09-28 13:11:48 -05:00
parent a134947df6
commit 85bf0fef59
Signed by: pitmutt
GPG Key ID: 65122AD495A7F5B2
1 changed files with 6 additions and 1 deletions

View File

@ -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