statesync

package
v14.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: Apache-2.0 Imports: 6 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) *tmproto.ConsensusParams
}

type ProtocolVersionSetter

type ProtocolVersionSetter interface {
	SetProtocolVersion(uint64)
}

type VersionSnapshotter

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

func (*VersionSnapshotter) RestoreExtension

func (vs *VersionSnapshotter) RestoreExtension(_ uint64, format uint32, payloadReader snapshot.ExtensionPayloadReader) error

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

func (*VersionSnapshotter) SnapshotExtension

func (vs *VersionSnapshotter) SnapshotExtension(height uint64, payloadWriter snapshot.ExtensionPayloadWriter) 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