Versions in this module Expand all Collapse all v1 v1.0.2 Mar 23, 2022 v1.0.1 Mar 17, 2022 Changes in this version + func DisableLog() + func DropAddrIndex(db database.DB) error + func DropExistsAddrIndex(db database.DB) error + func DropTxIndex(db database.DB) error + func UseLogger(logger btclog.Logger) + type AddrIndex struct + func NewAddrIndex(db database.DB, chainParams *chaincfg.Params) *AddrIndex + func (idx *AddrIndex) AddUnconfirmedTx(tx *hcutil.Tx, utxoView *blockchain.UtxoViewpoint) + func (idx *AddrIndex) ConnectBlock(dbTx database.Tx, block, parent *hcutil.Block, view *blockchain.UtxoViewpoint) error + func (idx *AddrIndex) Create(dbTx database.Tx) error + func (idx *AddrIndex) DisconnectBlock(dbTx database.Tx, block, parent *hcutil.Block, view *blockchain.UtxoViewpoint) 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) TxRegionsForAddress(dbTx database.Tx, addr hcutil.Address, numToSkip, numRequested uint32, ...) ([]database.BlockRegion, uint32, error) + func (idx *AddrIndex) UnconfirmedTxnsForAddress(addr hcutil.Address) []*hcutil.Tx + type AssertError string + func (e AssertError) Error() string + type ExistsAddrIndex struct + func NewExistsAddrIndex(db database.DB, chainParams *chaincfg.Params) *ExistsAddrIndex + func (idx *ExistsAddrIndex) AddUnconfirmedTx(tx *wire.MsgTx) + func (idx *ExistsAddrIndex) ConnectBlock(dbTx database.Tx, block, parent *hcutil.Block, view *blockchain.UtxoViewpoint) error + func (idx *ExistsAddrIndex) Create(dbTx database.Tx) error + func (idx *ExistsAddrIndex) DisconnectBlock(dbTx database.Tx, block, parent *hcutil.Block, view *blockchain.UtxoViewpoint) error + func (idx *ExistsAddrIndex) ExistsAddress(addr hcutil.Address) (bool, error) + func (idx *ExistsAddrIndex) ExistsAddresses(addrs []hcutil.Address) ([]bool, error) + func (idx *ExistsAddrIndex) Init() error + func (idx *ExistsAddrIndex) Key() []byte + func (idx *ExistsAddrIndex) Name() string + type Indexer interface + ConnectBlock func(dbTx database.Tx, block, parent *hcutil.Block, view *blockchain.UtxoViewpoint) error + Create func(dbTx database.Tx) error + DisconnectBlock func(dbTx database.Tx, block, parent *hcutil.Block, view *blockchain.UtxoViewpoint) error + Init func() error + Key func() []byte + Name func() string + type Manager struct + func NewManager(db database.DB, enabledIndexes []Indexer, params *chaincfg.Params) *Manager + func (m *Manager) ConnectBlock(dbTx database.Tx, block, parent *hcutil.Block, view *blockchain.UtxoViewpoint) error + func (m *Manager) DisconnectBlock(dbTx database.Tx, block, parent *hcutil.Block, view *blockchain.UtxoViewpoint) error + func (m *Manager) Init(chain *blockchain.BlockChain) error + type NeedsInputser interface + NeedsInputs func() bool + type TxIndex struct + func NewTxIndex(db database.DB) *TxIndex + func (idx *TxIndex) ConnectBlock(dbTx database.Tx, block, parent *hcutil.Block, view *blockchain.UtxoViewpoint) error + func (idx *TxIndex) Create(dbTx database.Tx) error + func (idx *TxIndex) DisconnectBlock(dbTx database.Tx, block, parent *hcutil.Block, view *blockchain.UtxoViewpoint) error + func (idx *TxIndex) Init() error + func (idx *TxIndex) Key() []byte + func (idx *TxIndex) Name() string + func (idx *TxIndex) TxBlockRegion(hash chainhash.Hash) (*database.BlockRegion, error)