pub struct OpenBlock<'x> { /* private fields */ }
Expand description

Block that is ready for transactions to be added.

It’s a bit like a Vec, except that whenever a transaction is pushed, we execute it and maintain the system state(). We also archive execution receipts in preparation for later block creation.

Implementations

t_nb 8.1 Create a new OpenBlock ready for transaction pushing.

Alter the timestamp of the block.

Removes block gas limit.

Set block gas limit.

NOTE Will check chain constraints and the uncle number but will NOT check that the header itself is actually valid.

Push a transaction into the block.

If valid, it will be executed, and archived together with the receipt.

Turn this into a ClosedBlock.

t_nb 8.5 Turn this into a LockedBlock.

Methods from Deref<Target = ExecutedBlock>

Get the environment info concerning this block.

Trait Implementations

The resulting type after dereferencing.

Dereferences the value.

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 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.