tx-generator-2.11: A transaction workload generator for Cardano clusters
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cardano.TxGenerator.Setup.NodeConfig

Description

This module provides convenience functions when dealing with cardano-node's configuration and config files as well as protocol instantiation.

Synopsis

Documentation

getGenesis :: SomeConsensusProtocol -> ShelleyGenesis Source #

extract genesis from a Cardano protocol NB. this helper is *only* for protocols created with this module as this guarantees proper error handling when trying to create a non-Cardano protocol.

getGenesisPath :: NodeConfiguration -> Maybe GenesisFile Source #

extract the path to genesis file from a NodeConfiguration for Cardano protocol

mkNodeConfig :: FilePath -> IO (Either TxGenError NodeConfiguration) Source #

Creates a NodeConfiguration from a config file; the result is devoid of any keys/credentials