Documentation
¶
Index ¶
- type MinedTxHandler
- func (mt *MinedTxHandler) Add(txn *badger.Txn, height uint32, txs []*objs.Tx) error
- func (mt *MinedTxHandler) Delete(txn *badger.Txn, txHashes [][]byte) error
- func (mt *MinedTxHandler) Get(txn *badger.Txn, txHashes [][]byte) ([]*objs.Tx, [][]byte, error)
- func (mt *MinedTxHandler) GetHeightForTx(txn *badger.Txn, txHash []byte) (uint32, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MinedTxHandler ¶
type MinedTxHandler struct {
// contains filtered or unexported fields
}
MinedTxHandler manages the storage of mined trasactions with indexing
func NewMinedTxHandler ¶
func NewMinedTxHandler() *MinedTxHandler
NewMinedTxHandler creates a new MinedTxHandler object
func (*MinedTxHandler) Delete ¶
func (mt *MinedTxHandler) Delete(txn *badger.Txn, txHashes [][]byte) error
Delete removes txs corresponding to txHashes from MinedTxHandler
func (*MinedTxHandler) GetHeightForTx ¶
GetHeightForTx returns height for a given txHash
Click to show internal directories.
Click to hide internal directories.