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]
impl LockedBlock
pub fn strip_receipts_outcomes(&mut self)
[src]
pub fn strip_receipts_outcomes(&mut self)
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.
pub fn hash(&self) -> H256
[src]
pub fn hash(&self) -> H256
Get the hash of the header without seal arguments.
pub fn seal(
self,
engine: &EthEngine,
seal: Vec<Bytes>
) -> Result<SealedBlock, BlockError>
[src]
pub fn seal(
self,
engine: &EthEngine,
seal: Vec<Bytes>
) -> Result<SealedBlock, BlockError>
Provide a valid seal in order to turn this into a SealedBlock
.
NOTE: This does not check the validity of seal
with the engine.
pub fn try_seal(
self,
engine: &EthEngine,
seal: Vec<Bytes>
) -> Result<SealedBlock, (Error, LockedBlock)>
[src]
pub fn try_seal(
self,
engine: &EthEngine,
seal: Vec<Bytes>
) -> Result<SealedBlock, (Error, LockedBlock)>
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]
impl Clone for LockedBlock
fn clone(&self) -> LockedBlock
[src]
fn clone(&self) -> LockedBlock
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 LockedBlock
[src]
impl<'x> IsBlock for LockedBlock
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.
impl Drain for LockedBlock
[src]
impl Drain for LockedBlock
Auto Trait Implementations
impl Send for LockedBlock
impl Send for LockedBlock
impl !Sync for LockedBlock
impl !Sync for LockedBlock