pub struct PartiallyDownloadedBlock {
pub txn_available: Vec<TransactionRef>,
pub prefilled_count: usize,
pub mempool_count: usize,
pub extra_count: usize,
pub pool: Arc<TxMemPool>,
pub header: BlockHeader,
}Fields§
§txn_available: Vec<TransactionRef>§prefilled_count: usize§mempool_count: usize§extra_count: usize§pool: Arc<TxMemPool>§header: BlockHeaderImplementations§
source§impl PartiallyDownloadedBlock
impl PartiallyDownloadedBlock
pub fn new(pool_in: Amo<TxMemPool>) -> Self
sourcepub fn init_data(
&mut self,
cmpctblock: &BlockHeaderAndShortTxIDs,
extra_txn: &Vec<Option<(u256, TransactionRef)>>
) -> ReadStatus
pub fn init_data( &mut self, cmpctblock: &BlockHeaderAndShortTxIDs, extra_txn: &Vec<Option<(u256, TransactionRef)>> ) -> ReadStatus
| extra_txn is a list of extra transactions | to look at, in <witness hash, reference> | form
pub fn is_tx_available(&self, index: usize) -> bool
pub fn fill_block( &mut self, block: &mut Block, vtx_missing: &Vec<TransactionRef> ) -> ReadStatus
Trait Implementations§
source§impl PartialEq<PartiallyDownloadedBlock> for PartiallyDownloadedBlock
impl PartialEq<PartiallyDownloadedBlock> for PartiallyDownloadedBlock
Auto Trait Implementations§
impl !RefUnwindSafe for PartiallyDownloadedBlock
impl Send for PartiallyDownloadedBlock
impl Sync for PartiallyDownloadedBlock
impl Unpin for PartiallyDownloadedBlock
impl !UnwindSafe for PartiallyDownloadedBlock
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more