export

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: Apache-2.0, MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainExporter

type ChainExporter struct {

	// the Head of the chain being exported
	Head block.TipSet
	// contains filtered or unexported fields
}

ChainExporter exports the blockchain contained in bstore to the out writer.

func NewChainExporter

func NewChainExporter(repoPath string, out io.Writer) (*ChainExporter, error)

NewChainExporter returns a ChainExporter.

func (*ChainExporter) ChainStateTree

func (ce *ChainExporter) ChainStateTree(ctx context.Context, c cid.Cid) ([]format.Node, error)

ChainStateTree returns the state tree as a slice of IPLD nodes at the passed stateroot cid `c`.

func (*ChainExporter) Export

func (ce *ChainExporter) Export(ctx context.Context) error

Export will export a chain (all blocks and their messages) to the writer `out`.

func (*ChainExporter) GetTipSet

func (ce *ChainExporter) GetTipSet(key block.TipSetKey) (*block.TipSet, error)

GetTipSet gets the TipSet for a given TipSetKey from the ChainExporter blockstore.

Jump to

Keyboard shortcuts

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