Struct ckb_types::packed::CompactBlock [−][src]
pub struct CompactBlock(_);
Implementations
pub fn build_from_block(
block: &BlockView,
prefilled_transactions_indexes: &HashSet<usize>
) -> Self
pub fn build_from_block(
block: &BlockView,
prefilled_transactions_indexes: &HashSet<usize>
) -> Self
Builds a CompactBlock
from block and prefilled transactions indexes.
Takes proposal short ids for the transactions which are not prefilled.
Collects the short id indexes.
Gets the i-th extra field if it exists; i started from 0.
Trait Implementations
type Builder = CompactBlockBuilder
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for CompactBlock
impl Send for CompactBlock
impl Sync for CompactBlock
impl Unpin for CompactBlock
impl UnwindSafe for CompactBlock
Blanket Implementations
Mutably borrows from an owned value. Read more