genesis

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

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

Types

type DataRecord

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

type GenesisAddressAndBalances

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

func LoadFactomAddressesAndBalances

func LoadFactomAddressesAndBalances(file io.Reader) ([]*GenesisAddressAndBalances, error)

type InitOpts

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

	IncludeHistoryFromSnapshots bool
}

Jump to

Keyboard shortcuts

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