pendingindex

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PendingTxIndexer

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

func NewPendingTxIndexer

func NewPendingTxIndexer() *PendingTxIndexer

func (*PendingTxIndexer) Add

func (pti *PendingTxIndexer) Add(txn *badger.Txn, epoch uint32, txHash []byte, utxoIDs [][]byte) ([][]byte, error)

func (*PendingTxIndexer) DeleteMined

func (pti *PendingTxIndexer) DeleteMined(txn *badger.Txn, txHash []byte) ([][]byte, [][]byte, error)

func (*PendingTxIndexer) DeleteOne

func (pti *PendingTxIndexer) DeleteOne(txn *badger.Txn, txHash []byte) error

func (*PendingTxIndexer) DropBefore

func (pti *PendingTxIndexer) DropBefore(txn *badger.Txn, epoch uint32) ([][]byte, error)

func (*PendingTxIndexer) GetEpoch

func (pti *PendingTxIndexer) GetEpoch(txn *badger.Txn, txHash []byte) (uint32, error)

func (*PendingTxIndexer) GetOrderedIter

func (pti *PendingTxIndexer) GetOrderedIter(txn *badger.Txn) (*badger.Iterator, []byte)

Jump to

Keyboard shortcuts

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