Milestone 3: RPC server, ZIP-320 #104

Merged
pitmutt merged 152 commits from milestone3 into master 2024-11-21 15:39:19 +00:00
Showing only changes of commit 28a75895f4 - Show all commits

View file

@ -125,7 +125,16 @@ getCommitmentTrees ::
getCommitmentTrees pool nodeHost nodePort znet block = do getCommitmentTrees pool nodeHost nodePort znet block = do
bh' <- getBlockHash pool block znet bh' <- getBlockHash pool block znet
case bh' of case bh' of
Nothing -> throwIO $ userError "couldn't get block hash" Nothing -> do
r <-
makeZebraCall
nodeHost
nodePort
"z_gettreestate"
[Data.Aeson.String $ T.pack $ show block]
case r of
Left e -> throwIO $ userError e
Right zti -> return zti
Just bh -> do Just bh -> do
r <- r <-
makeZebraCall makeZebraCall