snapshotdb

package
v0.60.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ShowList = iota
	ShowJSON
	ShowVersions
	UndefinedShowing
)

Variables

This section is empty.

Functions

func SavePayloadsToFile

func SavePayloadsToFile(tree *iavl.MutableTree, heightToOutput uint64, outputPath string) error

func ShowSnapshotData

func ShowSnapshotData(dbPath, vegaHome string, show Showing, outputPath string, heightToOutput uint64) error

func SnapshotsHDataFromTree

func SnapshotsHDataFromTree(tree *iavl.MutableTree, heightToOutput uint64) ([]SnapshotData, []SnapshotData, error)

Types

type Showing

type Showing byte

func ShowingFromString

func ShowingFromString(s string) Showing

type SnapshotData

type SnapshotData struct {
	Height  *uint64 `json:"height,omitempty"`
	Version int64   `json:"version"`
	Size    int64   `json:"size"`
	Hash    string  `json:"hash"`
}

SnapshotData is a representation of the information we scrape from the avl tree.

Jump to

Keyboard shortcuts

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