pub trait Filters {
    fn get_headers(
        &self,
        range: RangeInclusive<u64>
    ) -> Vec<(FilterHash, FilterHeader), Global>Notable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
    A: Allocator,
; fn get_header(&self, height: u64) -> Option<(FilterHash, FilterHeader)>; fn import_headers(
        &mut self,
        headers: Vec<(FilterHash, FilterHeader), Global>
    ) -> Result<u64, Error>; fn tip(&self) -> (&FilterHash, &FilterHeader); fn height(&self) -> u64; fn rollback(&mut self, height: u64) -> Result<(), Error>; fn clear(&mut self) -> Result<(), Error>; fn get_prev_header(&self, height: u64) -> Option<FilterHeader> { ... } }
Expand description

A trait for types that provide read/write access to compact block filters, and filter headers.

Required Methods

Get filter headers given a block height range.

Get the filter header at the given height. Includes the hash of the filter itself.

Import filter headers.

Get the tip of the filter header chain.

Get the height of the filter header chain.

Rollback filter chain to the given height.

Truncate the filter header chain to zero.

Provided Methods

Get the filter header previous to the given height.

Implementors