pub type DataSource = FileSystemDataSource<SeqTypes, Provider>;Aliased Type§
pub struct DataSource { /* private fields */ }Trait Implementations§
Source§impl CatchupStorage for DataSource
impl CatchupStorage for DataSource
Source§fn get_accounts(
&self,
_instance: &NodeState,
_height: u64,
_view: ViewNumber,
_accounts: &[FeeAccount],
) -> impl Send + Future<Output = Result<(FeeMerkleTree, Leaf2)>>
fn get_accounts( &self, _instance: &NodeState, _height: u64, _view: ViewNumber, _accounts: &[FeeAccount], ) -> impl Send + Future<Output = Result<(FeeMerkleTree, Leaf2)>>
Get the state of the requested
accounts. Read morefn get_reward_accounts_v1( &self, _instance: &NodeState, _height: u64, _view: ViewNumber, _accounts: &[RewardAccountV1], ) -> impl Send + Future<Output = Result<(RewardMerkleTreeV1, Leaf2)>>
fn get_reward_accounts_v2( &self, _instance: &NodeState, _height: u64, _view: ViewNumber, _accounts: &[RewardAccountV2], ) -> impl Send + Future<Output = Result<(RewardMerkleTreeV2, Leaf2)>>
Source§fn get_frontier(
&self,
_instance: &NodeState,
_height: u64,
_view: ViewNumber,
) -> impl Send + Future<Output = Result<BlocksFrontier>>
fn get_frontier( &self, _instance: &NodeState, _height: u64, _view: ViewNumber, ) -> impl Send + Future<Output = Result<BlocksFrontier>>
Get the blocks Merkle tree frontier. Read more
fn get_chain_config( &self, _commitment: Commitment<ChainConfig>, ) -> impl Send + Future<Output = Result<ChainConfig>>
fn get_leaf_chain( &self, _height: u64, ) -> impl Send + Future<Output = Result<Vec<Leaf2>>>
Source§fn load_earliest_cert2(
&self,
_height: u64,
) -> impl Send + Future<Output = Result<Option<Certificate2<SeqTypes>>>>
fn load_earliest_cert2( &self, _height: u64, ) -> impl Send + Future<Output = Result<Option<Certificate2<SeqTypes>>>>
Load the earliest cert2 whose finalized block height is at or above
height. Read moreSource§impl PruningDataSource for DataSource
impl PruningDataSource for DataSource
Source§async fn get_oldest_block(&self) -> Result<Option<BlockQueryData<SeqTypes>>>
async fn get_oldest_block(&self) -> Result<Option<BlockQueryData<SeqTypes>>>
Get the oldest block in storage, or
None if empty or unsupported.Source§async fn get_oldest_leaf(&self) -> Result<Option<LeafQueryData<SeqTypes>>>
async fn get_oldest_leaf(&self) -> Result<Option<LeafQueryData<SeqTypes>>>
Get the oldest leaf in storage, or
None if empty or unsupported.