Documentation ¶
Index ¶
- func ConvertJsonToSnapshot(doc *types.GenesisDoc) ([]byte, error)
- func ConvertSnapshotToJson(snap []byte) (*types.GenesisDoc, error)
- func DocProvider(config *tm.Config) node.GenesisDocProvider
- func Extract(db *coredb.Database, snap ioutil2.SectionReader, ...) (map[[32]byte]*AccountData, error)
- func Init(snapshotWriter io.WriteSeeker, opts InitOpts) error
- type AccountData
- type DataRecord
- type GenesisAddressAndBalances
- type InitOpts
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 ConvertSnapshotToJson ¶ added in v1.4.0
func ConvertSnapshotToJson(snap []byte) (*types.GenesisDoc, error)
func DocProvider ¶ added in v1.2.10
func DocProvider(config *tm.Config) node.GenesisDocProvider
DocProvider reads the genesis document.
Types ¶
type AccountData ¶ added in v1.4.0
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(*core.GlobalValues) (ioutil2.SectionReader, error) // Flags IncludeHistoryFromSnapshots bool }
Click to show internal directories.
Click to hide internal directories.