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:
Dave Collins 2018-09-07 18:43:48 -05:00
parent 61cdcb81fc
commit c5e3320f57
No known key found for this signature in database
GPG Key ID: B8904D9D9C93D1F2

View File

@ -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.
//