Versions in this module Expand all Collapse all v0 v0.5.0 Mar 23, 2021 Changes in this version + type Handler struct + DepositHandler depositHandler + UTXOHandler utxoHandler + func NewPendingTxHandler(db *badger.DB) *Handler + func (pt *Handler) Add(txnState *badger.Txn, txs []*objs.Tx, currentHeight uint32) error + func (pt *Handler) Contains(txnState *badger.Txn, currentHeight uint32, txHashes [][]byte) ([][]byte, error) + func (pt *Handler) Delete(txnState *badger.Txn, txHashes [][]byte) error + func (pt *Handler) DeleteMined(txnState *badger.Txn, currentHeight uint32, txHashes [][]byte) error + func (pt *Handler) Drop() error + func (pt *Handler) Get(txnState *badger.Txn, currentHeight uint32, txHashes [][]byte) ([]*objs.Tx, [][]byte, error) + func (pt *Handler) GetTxsForGossip(txnState *badger.Txn, ctx context.Context, currentHeight uint32, ...) ([]*objs.Tx, error) + func (pt *Handler) GetTxsForProposal(txnState *badger.Txn, ctx context.Context, currentHeight uint32, ...) (objs.TxVec, error)