Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertJsonToSnapshot ¶ added in v1.2.10
func ConvertJsonToSnapshot(doc *types.GenesisDoc) ([]byte, error)
func DocProvider ¶ added in v1.2.10
func DocProvider(config *config.Config) node.GenesisDocProvider
DocProvider reads the genesis document.
Types ¶
type GenesisAddressAndBalances ¶
func LoadFactomAddressesAndBalances ¶
func LoadFactomAddressesAndBalances(file io.Reader) ([]*GenesisAddressAndBalances, error)
type InitOpts ¶
type InitOpts struct { Logger log.Logger NetworkID string PartitionId string NetworkType protocol.PartitionType GenesisTime time.Time GenesisGlobals *core.GlobalValues OperatorKeys [][]byte // For Tendermint ConsensusParams *tmtypes.ConsensusParams // Preloaded data FactomAddresses func() (io.Reader, error) Snapshots []func() (ioutil2.SectionReader, error) // Flags IncludeHistoryFromSnapshots bool }
Click to show internal directories.
Click to hide internal directories.