genesis

package
v1.0.0-rc1.2-debug Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(snapshot io.WriteSeeker, opts InitOpts) ([]byte, error)

Types

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(file io.Reader) ([]*GenesisAddressAndBalances, error)

type InitOpts

type InitOpts struct {
	PartitionId     string
	NetworkType     config.NetworkType
	GenesisTime     time.Time
	Logger          log.Logger
	FactomAddresses func() (io.Reader, error)
	GenesisGlobals  *core.GlobalValues
	OperatorKeys    [][]byte
}

Jump to

Keyboard shortcuts

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