hydra-node-0.20.0: The Hydra node
Safe HaskellSafe-Inferred
LanguageGHC2021

Hydra.Chain.Offline

Synopsis

Documentation

offlineHeadId :: NodeId -> HeadId Source #

Derived HeadId of offline head.

offlineHeadSeed :: NodeId -> HeadSeed Source #

Derived HeadSeed of offline head.

loadGenesisFile :: Maybe FilePath -> IO (GenesisParameters ShelleyEra) Source #

Load the given genesis file or use defaults specific to the offline mode. Throws: InitialUTxOParseException if the initial UTXO file could not be parsed.

withOfflineChain Source #

Arguments

:: NodeId 
-> OfflineChainConfig 
-> Party 
-> ChainStateHistory Tx

Last known chain state as loaded from persistence.

-> ChainComponent Tx IO a 

tickForever :: GenesisParameters ShelleyEra -> (ChainEvent Tx -> IO ()) -> IO () Source #