loader

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checkpoint added in v1.4.0

type Checkpoint struct {
	// contains filtered or unexported fields
}

func FromCheckpoint added in v1.4.0

func FromCheckpoint(file io.Reader) *Checkpoint

func (*Checkpoint) Trie added in v1.4.0

func (c *Checkpoint) Trie() (*trie.MTrie, error)

Trie loads the execution state trie from the LedgerWAL root checkpoint.

type Index added in v1.4.0

type Index struct {
	// contains filtered or unexported fields
}

Index implements an execution state trie loader on top of a DPS index, able to restore an execution state trie from the index database.

func FromIndex added in v1.4.0

func FromIndex(log zerolog.Logger, lib dps.ReadLibrary, db *badger.DB) *Index

FromIndex creates a new index loader, which can restore the execution state from the given index database, using the given library for decoding ledger paths and payloads.

func (*Index) Trie added in v1.4.0

func (i *Index) Trie() (*trie.MTrie, error)

Trie restores the execution state trie from the DPS index database, as it was when indexing was stopped.

Jump to

Keyboard shortcuts

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