Skip to main content

NodeLightClient

Type Alias NodeLightClient 

Source
pub type NodeLightClient = LightClient<SqlStorage, FallbackClient<QueryServiceClient>>;

Aliased Type§

pub struct NodeLightClient { /* private fields */ }

Trait Implementations§

Source§

impl ChainSource for NodeLightClient

Source§

fn fetch_range<'life0, 'async_trait>( &'life0 self, from: u64, to: u64, ) -> Pin<Box<dyn Future<Output = Result<Vec<VerifiedBlock>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

One finality proof and one payload proof request cover the whole range.

Source§

fn block_height<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn fetch_cert2<'life0, 'life1, 'async_trait>( &'life0 self, header: &'life1 Header, ) -> Pin<Box<dyn Future<Output = Result<Option<Certificate2<SeqTypes>>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

The cert2 that finalized header directly, if any.