txstore

package
v0.0.0-...-81c3603 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TxStore

type TxStore interface {
	// Retrieves a transaction by hash from the indexer
	Get(hash []byte) (*abcitypes.TxResult, error)

	// Searches transactions that follow the provided query
	Search(ctx context.Context, q *cmtquery.Query) ([]*abcitypes.TxResult, error)

	// Adds a list of transactions to the indexer
	Add(txs []*abcitypes.TxResult) error

	// Removes all transactions from the indexer that belong to blocks after height.
	RollbackToHeight(rollbackHeight, currentHeight int64) error
}

func NewTxStore

func NewTxStore(db dbm.DB) TxStore

Jump to

Keyboard shortcuts

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