pub struct LockedBlock { /* private fields */ }
Expand description

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.

Implementations

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.

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. TODO(https://github.com/openethereum/openethereum/issues/10407): This is currently only used in POW chain call paths, we should really merge it with seal() above.

Methods from Deref<Target = ExecutedBlock>

Get the environment info concerning this block.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

The resulting type after dereferencing.

Dereferences the value.

Returns ExecutedBlock

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.