statesync

package
v12.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SnapshotName   = "sg_version_snapshotter"
	SnapshotFormat = 0xFF
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsensusParamsGetter

type ConsensusParamsGetter interface {
	GetConsensusParams(ctx sdk.Context) *abci.ConsensusParams
}

type ProtocolVersionSetter

type ProtocolVersionSetter interface {
	SetProtocolVersion(uint64)
}

type VersionSnapshotter

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

func (*VersionSnapshotter) Restore

func (vs *VersionSnapshotter) Restore(_ uint64, format uint32, protoReader protoio.Reader) (snapshot.SnapshotItem, error)

Restore restores a state snapshot from the protobuf items read from the reader.

func (*VersionSnapshotter) Snapshot

func (vs *VersionSnapshotter) Snapshot(height uint64, protoWriter protoio.Writer) error

Snapshot writes snapshot items into the protobuf writer.

func (*VersionSnapshotter) SnapshotFormat

func (vs *VersionSnapshotter) SnapshotFormat() uint32

func (*VersionSnapshotter) SnapshotName

func (vs *VersionSnapshotter) SnapshotName() string

func (*VersionSnapshotter) SupportedFormats

func (vs *VersionSnapshotter) SupportedFormats() []uint32

Jump to

Keyboard shortcuts

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