Struct ckb_types::core::BlockBuilder [−][src]
pub struct BlockBuilder { /* fields omitted */ }
Expand description
An advanced builder for BlockView
.
Base on packed::BlockBuilder
but added lots of syntactic sugar.
Implementations
Sets header.parent_hash
.
Sets header.transactions_root
.
Sets header.proposals_hash
.
Sets header.compact_target
.
Sets header.extra_hash
.
Pushes an item into uncles
.
Extends uncles
with the contents of an iterator.
Sets uncles
.
Pushes an item into transactions
.
Extends transactions
with the contents of an iterator.
Sets transactions
.
Pushes an item into proposals
.
Extends proposals
with the contents of an iterator.
Sets proposals
.
Set header
.
Converts into BlockView
and recalculates all hashes and merkle
roots in the header.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for BlockBuilder
impl Send for BlockBuilder
impl Sync for BlockBuilder
impl Unpin for BlockBuilder
impl UnwindSafe for BlockBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more