genesis

package
v0.8.1-beta Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bootstrap

type Bootstrap interface {
	Bootstrap() error
	GetDBState() ([]byte, error)
}

func Init

func Init(kvdb storage.KeyValueStore, opts InitOpts) (Bootstrap, error)

type DataRecord added in v1.0.0

type DataRecord struct {
	Account *url.URL
	Entry   protocol.DataEntry
}

type GenesisAddressAndBalances added in v1.0.0

type GenesisAddressAndBalances struct {
	Address *url.URL
	Balance int64
}

func LoadFactomAddressesAndBalances added in v1.0.0

func LoadFactomAddressesAndBalances(factomFilePath string) ([]*GenesisAddressAndBalances, error)

type InitOpts

type InitOpts struct {
	Network             config.Network
	AllConfigs          []*config.Config
	Validators          []tmtypes.GenesisValidator
	NetworkValidatorMap NetworkValidatorMap
	GenesisTime         time.Time
	Logger              log.Logger
	FactomAddressesFile string
	Keys                [][]byte
}

type NetworkValidatorMap

type NetworkValidatorMap map[string][]tmtypes.GenesisValidator

Jump to

Keyboard shortcuts

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