Skip to content

Commit

Permalink
Fix hash computation with cardano-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mueller committed Oct 31, 2024
1 parent 4a2fb5b commit e686981
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/devnet/lib/Convex/Devnet/CardanoNode.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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 ::
Expand Down

0 comments on commit e686981

Please sign in to comment.