Skip to content

Commit

Permalink
Add haddock to carryHashChecks
Browse files Browse the repository at this point in the history
  • Loading branch information
palas committed Sep 25, 2024
1 parent bffa937 commit 7cd0239
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -514,10 +514,15 @@ runGovernanceActionHardforkInitCmd
conwayEraOnwardsConstraints eon $
writeFileTextEnvelope outFile (Just "Hardfork initiation proposal") proposalProcedure

-- | Check the hash of the anchor data against the hash in the anchor if
-- checkHash is set to CheckHash.
carryHashChecks
:: MustCheckHash a
-- ^ Whether to check the hash or not (CheckHash for checking or TrustHash for not checking)
-> L.Anchor L.StandardCrypto
-- ^ The anchor data whose hash is to be checked
-> AnchorDataTypeCheck
-- ^ The type of anchor data to check (for error reporting purpouses)
-> ExceptT GovernanceActionsError IO ()
carryHashChecks checkHash anchor errorAdaptor =
case checkHash of
Expand Down

0 comments on commit 7cd0239

Please sign in to comment.