DefaultGenesisDocProviderFunc returns a GenesisDocProvider that loads the GenesisDoc from the config.GenesisFile() on the filesystem.
(config *cfg.Config)
| 114 | // DefaultGenesisDocProviderFunc returns a GenesisDocProvider that loads |
| 115 | // the GenesisDoc from the config.GenesisFile() on the filesystem. |
| 116 | func DefaultGenesisDocProviderFunc(config *cfg.Config) GenesisDocProvider { |
| 117 | return func() (*types.GenesisDoc, error) { |
| 118 | return types.GenesisDocFromFile(config.GenesisFile()) |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | // Provider takes a config and a logger and returns a ready to go Node. |
| 123 | type Provider func(*cfg.Config, log.Logger) (*Node, error) |
no test coverage detected