Trait nakamoto_p2p::protocol::spvmgr::SyncFilters[][src]

pub trait SyncFilters {
    fn get_cfheaders(
        &self,
        addr: PeerId,
        start_height: Height,
        stop_hash: BlockHash,
        timeout: Timeout
    );
fn get_cfilters(
        &self,
        addr: PeerId,
        start_height: Height,
        stop_hash: BlockHash,
        timeout: Timeout
    );
fn send_cfheaders(&self, addr: PeerId, headers: CFHeaders);
fn send_cfilter(&self, addr: PeerId, filter: CFilter); }

Compact filter synchronization.

Required methods

fn get_cfheaders(
    &self,
    addr: PeerId,
    start_height: Height,
    stop_hash: BlockHash,
    timeout: Timeout
)
[src]

Get compact filter headers from peer, starting at the start height, and ending at the stop hash.

fn get_cfilters(
    &self,
    addr: PeerId,
    start_height: Height,
    stop_hash: BlockHash,
    timeout: Timeout
)
[src]

Get compact filters from a peer.

fn send_cfheaders(&self, addr: PeerId, headers: CFHeaders)[src]

Send compact filter headers to a peer.

fn send_cfilter(&self, addr: PeerId, filter: CFilter)[src]

Send a compact filter to a peer.

Loading content...

Implementors

impl SyncFilters for Channel[src]

Loading content...