rootmulti

package
v1.1.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const CommitInfoFileName = "commit_infos"

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(dir string, logger log.Logger, sdk46Compact bool) *Store

func (*Store) AddListeners

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

Implements interface CommitMultiStore

func (*Store) CacheMultiStore

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

Implements interface MultiStore

func (*Store) CacheMultiStoreWithVersion

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

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

func (*Store) CacheWrap

func (rs *Store) CacheWrap(storeKey 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

Implements interface Committer

func (*Store) GetCommitKVStore

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

Implements interface CommitMultiStore

func (*Store) GetCommitStore

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

Implements interface CommitMultiStore

func (*Store) GetEvents

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

func (*Store) GetKVStore

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

Implements interface MultiStore

func (*Store) GetPruning

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

Implements interface Committer

func (*Store) GetStore

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

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)

func (*Store) LastCommitID

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

Implements interface Committer

func (*Store) LatestVersion

func (rs *Store) LatestVersion() int64

Implements interface MultiStore

func (*Store) ListeningEnabled

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

Implements interface CommitMultiStore

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(height 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)

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(size int)

Implements interface CommitMultiStore

func (*Store) SetIAVLDisableFastNode

func (rs *Store) SetIAVLDisableFastNode(disable bool)

Implements interface CommitMultiStore

func (*Store) SetInitialVersion

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

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

func (*Store) SetInterBlockCache

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

SetInterBlockCache is a noop here because memiavl do caching on it's own, which works well with zero-copy.

func (*Store) SetLazyLoading

func (rs *Store) SetLazyLoading(lazyLoading bool)

Implements interface CommitMultiStore

func (*Store) SetMemIAVLOptions

func (rs *Store) SetMemIAVLOptions(opts memiavl.Options)

func (*Store) SetPruning

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

Implements interface Committer

func (*Store) SetSnapshotInterval

func (rs *Store) SetSnapshotInterval(snapshotInterval uint64)

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

func (*Store) SetTracer

func (rs *Store) SetTracer(w 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

Implements interface Snapshotter

func (*Store) TracingEnabled

func (rs *Store) TracingEnabled() bool

Implements interface MultiStore

func (*Store) WorkingHash added in v1.0.8

func (rs *Store) WorkingHash() []byte

WorkingHash returns the app hash of the working tree, it's only compatible with sdk 0.47 and later.

Implements interface Committer.

Jump to

Keyboard shortcuts

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