Struct ethcore::block::ClosedBlock
[−]
[src]
pub struct ClosedBlock { /* fields omitted */ }
Just like OpenBlock
, except that we've applied Engine::on_close_block
, finished up the non-seal header fields,
and collected the uncles.
There is no function available to push a transaction.
Methods
impl ClosedBlock
[src]
impl ClosedBlock
pub fn hash(&self) -> H256
[src]
pub fn hash(&self) -> H256
Get the hash of the header without seal arguments.
pub fn lock(self) -> LockedBlock
[src]
pub fn lock(self) -> LockedBlock
Turn this into a LockedBlock
, unable to be reopened again.
pub fn reopen(self, engine: &EthEngine) -> OpenBlock
[src]
pub fn reopen(self, engine: &EthEngine) -> OpenBlock
Given an engine reference, reopen the ClosedBlock
into an OpenBlock
.
Trait Implementations
impl Clone for ClosedBlock
[src]
impl Clone for ClosedBlock
fn clone(&self) -> ClosedBlock
[src]
fn clone(&self) -> ClosedBlock
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<'x> IsBlock for ClosedBlock
[src]
impl<'x> IsBlock for ClosedBlock
fn block(&self) -> &ExecutedBlock
[src]
fn block(&self) -> &ExecutedBlock
Get the ExecutedBlock
associated with this object.
fn to_base(&self) -> Block
[src]
fn to_base(&self) -> Block
Get the base Block
object associated with this.
fn header(&self) -> &Header
[src]
fn header(&self) -> &Header
Get the header associated with this object's block.
fn state(&self) -> &State<StateDB>
[src]
fn state(&self) -> &State<StateDB>
Get the final state associated with this object's block.
fn transactions(&self) -> &[SignedTransaction]
[src]
fn transactions(&self) -> &[SignedTransaction]
Get all information on transactions in this block.
fn receipts(&self) -> &[Receipt]
[src]
fn receipts(&self) -> &[Receipt]
Get all information on receipts in this block.
fn traces(&self) -> &Tracing
[src]
fn traces(&self) -> &Tracing
Get all information concerning transaction tracing in this block.
fn uncles(&self) -> &[Header]
[src]
fn uncles(&self) -> &[Header]
Get all uncles in this block.
fn tracing_enabled(&self) -> bool
[src]
fn tracing_enabled(&self) -> bool
Get tracing enabled flag for this block.
Auto Trait Implementations
impl Send for ClosedBlock
impl Send for ClosedBlock
impl !Sync for ClosedBlock
impl !Sync for ClosedBlock