Struct ethcore::block::LockedBlock[][src]

pub struct LockedBlock { /* fields omitted */ }

Just like ClosedBlock except that we can't reopen it and it's faster.

We actually store the post-Engine::on_close_block state, unlike in ClosedBlock where it's the pre.

Methods

impl LockedBlock
[src]

Removes outcomes from receipts and updates the receipt root.

This is done after the block is enacted for historical reasons. We allow inconsistency in receipts for some chains if validate_receipts_transition is set to non-zero value, so the check only happens if we detect unmatching root first and then fall back to striped receipts.

Get the hash of the header without seal arguments.

Provide a valid seal in order to turn this into a SealedBlock.

NOTE: This does not check the validity of seal with the engine.

Provide a valid seal in order to turn this into a SealedBlock. This does check the validity of seal with the engine. Returns the ClosedBlock back again if the seal is no good.

Trait Implementations

impl Clone for LockedBlock
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl IsBlock for LockedBlock
[src]

Get the ExecutedBlock associated with this object.

Get the base Block object associated with this.

Get the header associated with this object's block.

Get the final state associated with this object's block.

Important traits for &'a [u8]

Get all information on transactions in this block.

Important traits for &'a [u8]

Get all information on receipts in this block.

Important traits for &'a [u8]

Get all uncles in this block.

impl Drain for LockedBlock
[src]

Returns ExecutedBlock

Auto Trait Implementations

impl Send for LockedBlock

impl !Sync for LockedBlock