indexers: Remove unneeded existsaddrindex iface.
This removes the implementation of the NeedsInputser interface on the exists address index since not implementing the interface is the same as implementing it and returning false. This is desirable because not only is it less code, it is consistent with the transaction index.
This commit is contained in:
parent
61cdcb81fc
commit
c5e3320f57
@ -76,17 +76,6 @@ func NewExistsAddrIndex(db database.DB, chainParams *chaincfg.Params) *ExistsAdd
|
||||
// Ensure the ExistsAddrIndex type implements the Indexer interface.
|
||||
var _ Indexer = (*ExistsAddrIndex)(nil)
|
||||
|
||||
// Ensure the ExistsAddrIndex type implements the NeedsInputser interface.
|
||||
var _ NeedsInputser = (*ExistsAddrIndex)(nil)
|
||||
|
||||
// NeedsInputs signals that the index requires the referenced inputs in order
|
||||
// to properly create the index.
|
||||
//
|
||||
// This implements the NeedsInputser interface.
|
||||
func (idx *ExistsAddrIndex) NeedsInputs() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// Init is only provided to satisfy the Indexer interface as there is nothing to
|
||||
// initialize for this index.
|
||||
//
|
||||
|
||||
Loading…
Reference in New Issue
Block a user