Versions in this module Expand all Collapse all v3 v3.1.0 May 12, 2022 Changes in this version + func DropAddrIndex(db database.DB, interrupt <-chan struct{}) error + func DropCfIndex(db database.DB, interrupt <-chan struct{}) error + func DropExistsAddrIndex(db database.DB, interrupt <-chan struct{}) error + func DropTxIndex(db database.DB, interrupt <-chan struct{}) error + func UseLogger(logger slog.Logger) + type AddrIndex struct + func NewAddrIndex(db database.DB, chainParams *chaincfg.Params) *AddrIndex + func (*AddrIndex) DropIndex(db database.DB, interrupt <-chan struct{}) error + func (idx *AddrIndex) AddUnconfirmedTx(tx *dcrutil.Tx, utxoView *blockchain.UtxoViewpoint) + func (idx *AddrIndex) ConnectBlock(dbTx database.Tx, block, parent *dcrutil.Block, view *blockchain.UtxoViewpoint) error + func (idx *AddrIndex) Create(dbTx database.Tx) error + func (idx *AddrIndex) DisconnectBlock(dbTx database.Tx, block, parent *dcrutil.Block, view *blockchain.UtxoViewpoint) error + func (idx *AddrIndex) EntriesForAddress(dbTx database.Tx, addr dcrutil.Address, numToSkip, numRequested uint32, ...) ([]TxIndexEntry, uint32, error) + func (idx *AddrIndex) Init() error + func (idx *AddrIndex) Key() []byte + func (idx *AddrIndex) Name() string + func (idx *AddrIndex) NeedsInputs() bool + func (idx *AddrIndex) RemoveUnconfirmedTx(hash *chainhash.Hash) + func (idx *AddrIndex) UnconfirmedTxnsForAddress(addr dcrutil.Address) []*dcrutil.Tx + func (idx *AddrIndex) Version() uint32 + type AssertError string + func (e AssertError) Error() string + type CFIndex struct + func NewCfIndex(db database.DB, chainParams *chaincfg.Params) *CFIndex + func (idx *CFIndex) ConnectBlock(dbTx database.Tx, block, parent *dcrutil.Block, view *blockchain.UtxoViewpoint) error + func (idx *CFIndex) Create(dbTx database.Tx) error + func (idx *CFIndex) DisconnectBlock(dbTx database.Tx, block, parent *dcrutil.Block, view *blockchain.UtxoViewpoint) error + func (idx *CFIndex) FilterByBlockHash(h *chainhash.Hash, filterType wire.FilterType) ([]byte, error) + func (idx *CFIndex) FilterHeaderByBlockHash(h *chainhash.Hash, filterType wire.FilterType) ([]byte, error) + func (idx *CFIndex) Init() error + func (idx *CFIndex) Key() []byte + func (idx *CFIndex) Name() string + func (idx *CFIndex) Version() uint32 + type ExistsAddrIndex struct + func NewExistsAddrIndex(db database.DB, chainParams *chaincfg.Params) *ExistsAddrIndex + func (*ExistsAddrIndex) DropIndex(db database.DB, interrupt <-chan struct{}) error + func (idx *ExistsAddrIndex) AddUnconfirmedTx(tx *wire.MsgTx) + func (idx *ExistsAddrIndex) ConnectBlock(dbTx database.Tx, block, parent *dcrutil.Block, view *blockchain.UtxoViewpoint) error + func (idx *ExistsAddrIndex) Create(dbTx database.Tx) error + func (idx *ExistsAddrIndex) DisconnectBlock(dbTx database.Tx, block, parent *dcrutil.Block, view *blockchain.UtxoViewpoint) error + func (idx *ExistsAddrIndex) ExistsAddress(addr dcrutil.Address) (bool, error) + func (idx *ExistsAddrIndex) ExistsAddresses(addrs []dcrutil.Address) ([]bool, error) + func (idx *ExistsAddrIndex) Init() error + func (idx *ExistsAddrIndex) Key() []byte + func (idx *ExistsAddrIndex) Name() string + func (idx *ExistsAddrIndex) Version() uint32 + type IndexDropper interface + DropIndex func(db database.DB, interrupt <-chan struct{}) error + type Indexer interface + ConnectBlock func(dbTx database.Tx, block, parent *dcrutil.Block, view *blockchain.UtxoViewpoint) error + Create func(dbTx database.Tx) error + DisconnectBlock func(dbTx database.Tx, block, parent *dcrutil.Block, view *blockchain.UtxoViewpoint) error + Init func() error + Key func() []byte + Name func() string + Version func() uint32 + type Manager struct + func NewManager(db database.DB, enabledIndexes []Indexer, params *chaincfg.Params) *Manager + func (m *Manager) ConnectBlock(dbTx database.Tx, block, parent *dcrutil.Block, view *blockchain.UtxoViewpoint) error + func (m *Manager) DisconnectBlock(dbTx database.Tx, block, parent *dcrutil.Block, view *blockchain.UtxoViewpoint) error + func (m *Manager) Init(chain *blockchain.BlockChain, interrupt <-chan struct{}) error + type NeedsInputser interface + NeedsInputs func() bool + type TxIndex struct + func NewTxIndex(db database.DB) *TxIndex + func (*TxIndex) DropIndex(db database.DB, interrupt <-chan struct{}) error + func (idx *TxIndex) ConnectBlock(dbTx database.Tx, block, parent *dcrutil.Block, view *blockchain.UtxoViewpoint) error + func (idx *TxIndex) Create(dbTx database.Tx) error + func (idx *TxIndex) DisconnectBlock(dbTx database.Tx, block, parent *dcrutil.Block, view *blockchain.UtxoViewpoint) error + func (idx *TxIndex) Entry(hash *chainhash.Hash) (*TxIndexEntry, error) + func (idx *TxIndex) Init() error + func (idx *TxIndex) Key() []byte + func (idx *TxIndex) Name() string + func (idx *TxIndex) Version() uint32 + type TxIndexEntry struct + BlockIndex uint32 + BlockRegion database.BlockRegion Other modules containing this package github.com/Decred-Next/dcrnd github.com/Decred-Next/dcrnd/blockchain/v8