cardano-node-1.22.1
Safe HaskellNone
LanguageHaskell2010

Cardano.Node.Protocol.Byron

Synopsis

Protocol exposing the specific type

Use this when you need the specific instance

mkConsensusProtocolByron :: NodeByronProtocolConfiguration -> Maybe ProtocolFilepaths -> ExceptT ByronProtocolInstantiationError IO (Protocol IO ByronBlockHFC ProtocolByron) Source #

Instantiate Protocol for Byron specifically.

Use this when you need to run the consensus with this specific protocol.

Protocols hiding the specific type

Use this when you want to handle protocols generically

mkSomeConsensusProtocolByron :: NodeByronProtocolConfiguration -> Maybe ProtocolFilepaths -> ExceptT ByronProtocolInstantiationError IO SomeConsensusProtocol Source #

Make SomeConsensusProtocol using the Byron instance.

This lets us handle multiple protocols in a generic way.

This also serves a purpose as a sanity check that we have all the necessary type class instances available.

Errors

Reusable parts