Versions in this module Expand all Collapse all v3 v3.3.3 Oct 4, 2022 Changes in this version + type Builder func(ctx *Context) (Database, error) + type Context struct + Cfg databaseconfig.Config + EncodingConfig *params.EncodingConfig + Logger logging.Logger + func NewContext(cfg databaseconfig.Config, encodingConfig *params.EncodingConfig, ...) *Context + type Database interface + Close func() + GetLastBlockHeight func() (int64, error) + GetTotalBlocks func() int64 + HasBlock func(height int64) (bool, error) + HasValidator func(address string) (bool, error) + SaveBlock func(block *types.Block) error + SaveCommitSignatures func(signatures []*types.CommitSig) error + SaveMessage func(msg *types.Message) error + SaveTx func(tx *coretypes.ResultTx) error + SaveValidators func(validators []*types.Validator) error + type Migrator interface + Migrate func() error + type PruningDb interface + GetLastPruned func() (int64, error) + Prune func(height int64) error + StoreLastPruned func(height int64) error