file

package
v0.2502.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2025 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Overview

Package file implements a file genesis provider.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider added in v0.2501.0

type Provider struct {
	// contains filtered or unexported fields
}

Provider provides the static genesis document that network was initialized with.

func DefaultProvider added in v0.2501.0

func DefaultProvider() *Provider

DefaultProvider creates a new local file genesis provider for the genesis file path specified in the genesis config.

func NewProvider added in v0.2501.0

func NewProvider(filename string) *Provider

NewProvider creates a new local file genesis provider.

func (*Provider) GetGenesisDocument added in v0.2501.0

func (p *Provider) GetGenesisDocument() (*api.Document, error)

GetGenesisDocument returns the genesis document.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL