multitree

package
v2.2.0-rc.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiTree

type MultiTree struct {
	Trees map[string]*itree.Tree
	// contains filtered or unexported fields
}

MultiTree encapsulates multiple IAVL trees, each with its own "store key" in the context of the Cosmos SDK. Within IAVL v2 is only used to test the IAVL v2 implementation, and for import/export of IAVL v2 state.

func ImportMultiTree

func ImportMultiTree(logger logger.Logger, version int64, path string, treeOpts itree.Options) (*MultiTree, error)

func NewMultiTree

func NewMultiTree(logger logger.Logger, rootPath string, opts itree.Options) *MultiTree

func (*MultiTree) Close

func (mt *MultiTree) Close() error

func (*MultiTree) Hash

func (mt *MultiTree) Hash() []byte

Hash is a stand in for code at https://github.com/cosmos/cosmos-sdk/blob/80dd55f79bba8ab675610019a5764470a3e2fef9/store/types/commit_info.go#L30 it used in testing. App chains should use the store hashing code referenced above instead.

func (*MultiTree) LoadVersion

func (mt *MultiTree) LoadVersion(version int64) error

func (*MultiTree) MountTree

func (mt *MultiTree) MountTree(storeKey string) error

func (*MultiTree) MountTrees

func (mt *MultiTree) MountTrees() error

func (*MultiTree) QueryReport

func (mt *MultiTree) QueryReport(bins int) error

func (*MultiTree) SaveVersion

func (mt *MultiTree) SaveVersion() ([]byte, int64, error)

func (*MultiTree) SaveVersionConcurrently

func (mt *MultiTree) SaveVersionConcurrently() ([]byte, int64, error)

func (*MultiTree) SnapshotConcurrently

func (mt *MultiTree) SnapshotConcurrently() error

func (*MultiTree) TestBuild

func (mt *MultiTree) TestBuild(opts *testutil.TreeBuildOptions) (int64, error)

func (*MultiTree) WarmLeaves

func (mt *MultiTree) WarmLeaves() error

Jump to

Keyboard shortcuts

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