txdb

package
v1.2.19 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Txns    = "txns"
	Results = "results"
)

Variables

This section is empty.

Functions

func NewTxDB

func NewTxDB(nodeTyp int, kvdb kv.Kvdb) ItxDB

Types

type TxDB

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

func (*TxDB) ExistTxn

func (bb *TxDB) ExistTxn(txnHash Hash) bool

func (*TxDB) GetReceipt

func (bb *TxDB) GetReceipt(txHash Hash) (*Receipt, error)

func (*TxDB) GetTxn

func (bb *TxDB) GetTxn(txnHash Hash) (*SignedTxn, error)

func (*TxDB) GetTxns

func (bb *TxDB) GetTxns(txnHashes []Hash) ([]*SignedTxn, error)

func (*TxDB) SetReceipt

func (bb *TxDB) SetReceipt(txHash Hash, receipt *Receipt) error

func (*TxDB) SetReceipts

func (bb *TxDB) SetReceipts(receipts map[Hash]*Receipt) error

func (*TxDB) SetTxns

func (bb *TxDB) SetTxns(txns []*SignedTxn) error

Jump to

Keyboard shortcuts

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