rootmulti

package
v0.45.10 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2025 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func NewStore

func NewStore(
	homeDir string,
	logger log.Logger,
	scConfig config.StateCommitConfig,
	ssConfig config.StateStoreConfig,
	migrateIavl bool,
) *Store

func (*Store) AddListeners

func (rs *Store) AddListeners(_ types.StoreKey, _ []types.WriteListener)

AddListeners is no-opts for panoDB

func (*Store) CacheMultiStore

func (rs *Store) CacheMultiStore() types.CacheMultiStore

Implements interface MultiStore

func (*Store) CacheMultiStoreForExport

func (rs *Store) CacheMultiStoreForExport(version int64) (types.CacheMultiStore, error)

func (*Store) CacheMultiStoreWithVersion

func (rs *Store) CacheMultiStoreWithVersion(version int64) (types.CacheMultiStore, error)

CacheMultiStoreWithVersion Implements interface MultiStore used to createQueryContext, abci_query or grpc query service.

func (*Store) CacheWrap

func (rs *Store) CacheWrap(_ types.StoreKey) types.CacheWrap

Implements interface CacheWrapper

func (*Store) CacheWrapWithListeners

func (rs *Store) CacheWrapWithListeners(k types.StoreKey, listeners []types.WriteListener) types.CacheWrap

func (*Store) CacheWrapWithTrace

func (rs *Store) CacheWrapWithTrace(storeKey types.StoreKey, _ io.Writer, _ types.TraceContext) types.CacheWrap

Implements interface CacheWrapper

func (*Store) Close

func (rs *Store) Close() error

func (*Store) Commit

func (rs *Store) Commit(bumpVersion bool) types.CommitID

Commit implements interface Committer, called by ABCI Commit

func (*Store) GetCommitKVStore

func (rs *Store) GetCommitKVStore(key types.StoreKey) types.CommitKVStore

GetCommitKVStore Implements interface CommitMultiStore

func (*Store) GetCommitStore

func (rs *Store) GetCommitStore(key types.StoreKey) types.CommitStore

Implements interface CommitMultiStore

func (*Store) GetEarliestVersion

func (rs *Store) GetEarliestVersion() int64

GetEarliestVersion return earliest version for SS or latestVersion if only SC is enabled

func (*Store) GetEvents

func (rs *Store) GetEvents() []abci.Event

func (*Store) GetKVStore

func (rs *Store) GetKVStore(key types.StoreKey) types.KVStore

GetKVStore Implements interface MultiStore

func (*Store) GetPruning

func (rs *Store) GetPruning() types.PruningOptions

Implements interface Committer

func (*Store) GetStateStore

func (rs *Store) GetStateStore() sstypes.StateStore

GetStateStore returns the ssStore instance

func (*Store) GetStore

func (rs *Store) GetStore(key types.StoreKey) types.Store

GetStore Implements interface MultiStore

func (*Store) GetStoreByName

func (rs *Store) GetStoreByName(name string) types.Store

getStoreByName performs a lookup of a StoreKey given a store name typically provided in a path. The StoreKey is then used to perform a lookup and return a Store. If the Store is wrapped in an inter-block cache, it will be unwrapped prior to being returned. If the StoreKey does not exist, nil is returned.

func (*Store) GetStoreType

func (rs *Store) GetStoreType() types.StoreType

Implements interface Store

func (*Store) GetWorkingHash

func (rs *Store) GetWorkingHash() ([]byte, error)

GetWorkingHash returns the working app hash

func (*Store) LastCommitID

func (rs *Store) LastCommitID() types.CommitID

LastCommitID Implements interface Committer

func (*Store) ListeningEnabled

func (rs *Store) ListeningEnabled(_ types.StoreKey) bool

ListeningEnabled will always return false for panoDB

func (*Store) LoadLatestVersion

func (rs *Store) LoadLatestVersion() error

Implements interface CommitMultiStore used by normal node startup.

func (*Store) LoadLatestVersionAndUpgrade

func (rs *Store) LoadLatestVersionAndUpgrade(upgrades *types.StoreUpgrades) error

Implements interface CommitMultiStore

func (*Store) LoadVersion

func (rs *Store) LoadVersion(ver int64) error

Implements interface CommitMultiStore used by export cmd

func (*Store) LoadVersionAndUpgrade

func (rs *Store) LoadVersionAndUpgrade(version int64, upgrades *types.StoreUpgrades) error

Implements interface CommitMultiStore used by node startup with UpgradeStoreLoader

func (*Store) MountStoreWithDB

func (rs *Store) MountStoreWithDB(key types.StoreKey, typ types.StoreType, _ dbm.DB)

Implements interface CommitMultiStore

func (*Store) PruneSnapshotHeight

func (rs *Store) PruneSnapshotHeight(_ int64)

Implements interface Snapshotter not needed, memiavl manage its own snapshot/pruning strategy

func (*Store) Query

func (rs *Store) Query(req abci.RequestQuery) abci.ResponseQuery

Implements interface Queryable

func (*Store) ResetEvents

func (rs *Store) ResetEvents()

func (*Store) Restore

func (rs *Store) Restore(
	height uint64, format uint32, protoReader protoio.Reader,
) (snapshottypes.SnapshotItem, error)

Restore Implements interface Snapshotter

func (*Store) RollbackToVersion

func (rs *Store) RollbackToVersion(target int64) error

RollbackToVersion delete the versions after `target` and update the latest version. it should only be called in standalone cli commands.

func (*Store) SetIAVLCacheSize

func (rs *Store) SetIAVLCacheSize(_ int)

Implements interface CommitMultiStore

func (*Store) SetIAVLDisableFastNode

func (rs *Store) SetIAVLDisableFastNode(_ bool)

Implements interface CommitMultiStore

func (*Store) SetInitialVersion

func (rs *Store) SetInitialVersion(version int64) error

SetInitialVersion Implements interface CommitMultiStore used by InitChain when the initial height is bigger than 1

func (*Store) SetInterBlockCache

func (rs *Store) SetInterBlockCache(_ types.MultiStorePersistentCache)

SetInterBlockCache is a noop since we do caching on its own, which works well with zero-copy.

func (*Store) SetKVStores

func (*Store) SetKVStores(handler func(key types.StoreKey, s types.KVStore) types.CacheWrap) types.MultiStore

SetKVStores implements types.CommitMultiStore.

func (*Store) SetLazyLoading

func (rs *Store) SetLazyLoading(_ bool)

Implements interface CommitMultiStore

func (*Store) SetPruning

func (rs *Store) SetPruning(types.PruningOptions)

Implements interface Committer

func (*Store) SetSnapshotInterval

func (rs *Store) SetSnapshotInterval(_ uint64)

Implements interface Snapshotter not needed, memiavl manage its own snapshot/pruning strategy

func (*Store) SetTracer

func (rs *Store) SetTracer(_ io.Writer) types.MultiStore

Implements interface MultiStore

func (*Store) SetTracingContext

func (rs *Store) SetTracingContext(types.TraceContext) types.MultiStore

Implements interface MultiStore

func (*Store) Snapshot

func (rs *Store) Snapshot(height uint64, protoWriter protoio.Writer) error

Snapshot Implements the interface from Snapshotter

func (*Store) StateStoreCommit

func (rs *Store) StateStoreCommit()

StateStoreCommit is a background routine to apply changes to SS store

func (*Store) StoreKeys

func (rs *Store) StoreKeys() []types.StoreKey

StoreKeys implements types.CommitMultiStore.

func (*Store) TracingEnabled

func (rs *Store) TracingEnabled() bool

Implements interface MultiStore

type VersionedChangesets

type VersionedChangesets struct {
	Version    int64
	Changesets []*proto.NamedChangeSet
}

Jump to

Keyboard shortcuts

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