Struct ethcore::block::OpenBlock[][src]

pub struct OpenBlock<'x> { /* fields omitted */ }

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.

Methods

impl<'x> OpenBlock<'x>
[src]

Create a new OpenBlock ready for transaction pushing.

Alter the timestamp of the block.

Removes block gas limit.

Add an uncle to the block, if possible.

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

Get the environment info concerning this block.

Push a transaction into the block.

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

Turn this into a ClosedBlock.

Turn this into a LockedBlock.

Trait Implementations

impl<'x> IsBlock for OpenBlock<'x>
[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.

Auto Trait Implementations

impl<'x> Send for OpenBlock<'x>

impl<'x> !Sync for OpenBlock<'x>