Struct primitives::block_header::BlockHeaderBuilder
source · pub struct BlockHeaderBuilder { /* private fields */ }
Implementations§
source§impl BlockHeaderBuilder
impl BlockHeaderBuilder
pub fn new() -> Self
pub fn with_parent_hash(&mut self, parent_hash: H256) -> &mut Self
pub fn with_height(&mut self, height: u64) -> &mut Self
pub fn with_timestamp(&mut self, timestamp: u64) -> &mut Self
pub fn with_transactions_root(&mut self, transactions_root: H256) -> &mut Self
pub fn with_deferred_state_root( &mut self, deferred_state_root: H256 ) -> &mut Self
pub fn with_deferred_receipts_root( &mut self, deferred_receipts_root: H256 ) -> &mut Self
pub fn with_deferred_logs_bloom_hash( &mut self, deferred_logs_bloom_hash: H256 ) -> &mut Self
pub fn with_blame(&mut self, blame: u32) -> &mut Self
pub fn with_difficulty(&mut self, difficulty: U256) -> &mut Self
pub fn with_adaptive(&mut self, adaptive: bool) -> &mut Self
pub fn with_gas_limit(&mut self, gas_limit: U256) -> &mut Self
pub fn with_referee_hashes(&mut self, referee_hashes: Vec<H256>) -> &mut Self
pub fn with_custom(&mut self, custom: Vec<Bytes>) -> &mut Self
pub fn with_nonce(&mut self, nonce: U256) -> &mut Self
pub fn with_pos_reference( &mut self, pos_reference: Option<PosBlockId> ) -> &mut Self
pub fn with_base_price( &mut self, maybe_base_price: Option<SpaceMap<U256>> ) -> &mut Self
pub fn build(&self) -> BlockHeader
pub fn compute_block_logs_bloom_hash(receipts: &Vec<Arc<BlockReceipts>>) -> H256
pub fn compute_aggregated_bloom(blooms: Vec<Bloom>) -> Bloom
pub fn compute_blame_state_root_vec_root(roots: Vec<H256>) -> H256
pub fn compute_blame_state_root_incremental( first_root: H256, remaining_root: H256 ) -> H256
Auto Trait Implementations§
impl Freeze for BlockHeaderBuilder
impl RefUnwindSafe for BlockHeaderBuilder
impl Send for BlockHeaderBuilder
impl Sync for BlockHeaderBuilder
impl Unpin for BlockHeaderBuilder
impl UnwindSafe for BlockHeaderBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more