pub trait BuildCompactBlock {
// Required methods
fn build_from_block(
block: &BlockView,
prefilled_transactions_indexes: &HashSet<usize>,
) -> CompactBlock;
fn block_short_ids(&self) -> Vec<Option<ProposalShortId>>;
fn short_id_indexes(&self) -> Vec<usize>;
}Expand description
Trait for building a compact block from a BlockView.
Required Methods§
Sourcefn build_from_block(
block: &BlockView,
prefilled_transactions_indexes: &HashSet<usize>,
) -> CompactBlock
fn build_from_block( block: &BlockView, prefilled_transactions_indexes: &HashSet<usize>, ) -> CompactBlock
Builds a compact block from a BlockView and a set of prefilled transaction indexes.
Sourcefn block_short_ids(&self) -> Vec<Option<ProposalShortId>>
fn block_short_ids(&self) -> Vec<Option<ProposalShortId>>
Returns the short IDs of the transactions in the compact block.
Sourcefn short_id_indexes(&self) -> Vec<usize>
fn short_id_indexes(&self) -> Vec<usize>
Returns the indexes of the short IDs in the compact block.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".