Class: FilterIndexer

indexer~FilterIndexer(options)

FilterIndexer

Constructor

new FilterIndexer(options)

Create a indexer

Extends:
  • Indexer
Parameters:
Name Type Description
options Object
Source:

Extends

  • Indexer

Methods

(async) getFilter(hash, type) → {Promise}

Retrieve compact filter by hash.

Parameters:
Name Type Description
hash Hash
type Number
Source:
Returns:
  • Returns Filter.
Type
Promise

(async) getFilterHeader(hash) → {Promise}

Retrieve compact filter header by hash.

Parameters:
Name Type Description
hash Hash
Source:
Returns:
Type
Promise

(async, private) indexBlock(meta, block, view)

Index compact filters.

Parameters:
Name Type Description
meta BlockMeta
block Block
view CoinView
Source:

(async, private) pruneBlock(meta)

Prune compact filters.

Parameters:
Name Type Description
meta BlockMeta
Source:

(async, private) saveGenesis() → {Promise}

Store genesis previous filter header.

Source:
Returns:
Type
Promise