DefaultGenesisDocProviderFunc returns a GenesisDocProvider that loads the GenesisDoc from the config.GenesisFile() on the filesystem.
(config *cfg.Config)
| 86 | // DefaultGenesisDocProviderFunc returns a GenesisDocProvider that loads |
| 87 | // the GenesisDoc from the config.GenesisFile() on the filesystem. |
| 88 | func DefaultGenesisDocProviderFunc(config *cfg.Config) GenesisDocProvider { |
| 89 | return func() (*types.GenesisDoc, error) { |
| 90 | return types.GenesisDocFromFile(config.GenesisFile()) |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | // Provider takes a config and a logger and returns a ready to go Node. |
| 95 | type Provider func(*cfg.Config, log.Logger) (*Node, error) |