From e68698151f9ba2378ebcd12aaf09963dac1433c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jann=20M=C3=BCller?= Date: Thu, 31 Oct 2024 12:32:25 +0100 Subject: [PATCH] Fix hash computation with cardano-cli --- src/devnet/lib/Convex/Devnet/CardanoNode.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devnet/lib/Convex/Devnet/CardanoNode.hs b/src/devnet/lib/Convex/Devnet/CardanoNode.hs index 8b682a1b..156945a3 100644 --- a/src/devnet/lib/Convex/Devnet/CardanoNode.hs +++ b/src/devnet/lib/Convex/Devnet/CardanoNode.hs @@ -472,7 +472,7 @@ withObject fn = \case computeGenesisHash :: FilePath -> IO String computeGenesisHash fp = -- drop the last character (newline) - take 64 <$> readProcess "cardano-cli" ["genesis", "hash", "--genesis", fp] "" + take 64 <$> readProcess "cardano-cli" ["hash", "anchor-data", "--file-text", fp] "" -- | Launch a Cardano stake pool node with predefined node configuration, port and topology. withCardanoStakePoolNodeDevnetConfig ::