pub struct BlockHeaderAndShortTxIDs {
pub shorttxidk0: RefCell<u64>,
pub shorttxidk1: RefCell<u64>,
pub nonce: u64,
pub shorttxids: Vec<u64>,
pub prefilledtxn: Vec<PrefilledTransaction>,
pub header: BlockHeader,
}
Expand description
Fields§
§shorttxidk0: RefCell<u64>
§shorttxidk1: RefCell<u64>
§nonce: u64
§shorttxids: Vec<u64>
§prefilledtxn: Vec<PrefilledTransaction>
§header: BlockHeader
Implementations§
source§impl BlockHeaderAndShortTxIDs
impl BlockHeaderAndShortTxIDs
pub fn block_tx_count(&self) -> usize
pub fn new(block: Amo<Block>, usewtxid: bool) -> Self
pub fn fill_short_tx_id_selector(&self)
pub fn get_shortid(&self, txhash: &u256) -> u64
Trait Implementations§
source§impl Default for BlockHeaderAndShortTxIDs
impl Default for BlockHeaderAndShortTxIDs
source§fn default() -> BlockHeaderAndShortTxIDs
fn default() -> BlockHeaderAndShortTxIDs
Returns the “default value” for a type. Read more
impl Send for BlockHeaderAndShortTxIDs
impl Sync for BlockHeaderAndShortTxIDs
Auto Trait Implementations§
impl !RefUnwindSafe for BlockHeaderAndShortTxIDs
impl Unpin for BlockHeaderAndShortTxIDs
impl !UnwindSafe for BlockHeaderAndShortTxIDs
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