Skip to content

Commit

Permalink
Add more context to why mkProtocolInfo fails on runtime in db-analyse…
Browse files Browse the repository at this point in the history
…r for Alonzo
  • Loading branch information
EncodePanda committed Sep 16, 2021
1 parent bec44a4 commit 270e087
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ouroboros-consensus-cardano/tools/db-analyser/Block/Alonzo.hs
Expand Up @@ -46,9 +46,11 @@ instance HasProtocolInfo (ShelleyBlock StandardAlonzo) where
, metavar "PATH"
])

-- | Not implemented because we don't anticipate running
-- an 'Alonzo only' chain.
mkProtocolInfo _ = undefined
-- | This function would only be used if we run an
-- Alonzo only chain. This should be dead code really.
mkProtocolInfo _ =
error $ "Not implemented because we don't "
<> "anticipate running an 'Alonzo only' chain."

type AlonzoBlockArgs = Args (ShelleyBlock StandardAlonzo)

Expand Down

0 comments on commit 270e087

Please sign in to comment.