meta

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package meta defines a chain metadata store for the ABCI application. Prior to using the methods, the tables should be initialized and updated to the latest schema version with InitializeMetaStore.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetChainState

func GetChainState(ctx context.Context, db sql.Executor) (int64, []byte, error)

GetChainState returns height and app hash from the chain state store. If there is no recorded data, height will be -1 and app hash nil.

func InitializeMetaStore

func InitializeMetaStore(ctx context.Context, db sql.DB) error

InitializeMetaStore initializes the chain metadata store schema.

func SetChainState

func SetChainState(ctx context.Context, db sql.Executor, height int64, appHash []byte) error

SetChainState will update the current height and app hash.

Types

This section is empty.

Jump to

Keyboard shortcuts

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