Trait ethcore_light::client::LightChainClient [] [src]

pub trait LightChainClient: Send + Sync {
    fn chain_info(&self) -> BlockChainInfo;
    fn queue_header(&self, header: Header) -> Result<H256, BlockImportError>;
    fn is_known(&self, hash: &H256) -> bool;
    fn clear_queue(&self);
    fn flush_queue(&self);
    fn queue_info(&self) -> QueueInfo;
    fn cht_root(&self, i: usize) -> Option<H256>;
}

Trait for interacting with the header chain abstractly.

Required Methods

Get chain info.

Queue header to be verified. Required that all headers queued have their parent queued prior.

Query whether a block is known.

Clear the queue.

Flush the queue.

Get queue info.

Get the ith CHT root.

Implementors