Struct ethcore::block::ExecutedBlock [−][src]
pub struct ExecutedBlock { pub header: Header, pub transactions: Vec<SignedTransaction>, pub uncles: Vec<Header>, pub receipts: Vec<Receipt>, pub transactions_set: HashSet<H256>, pub state: State<StateDB>, pub traces: Tracing, pub last_hashes: Arc<LastHashes>, pub is_finalized: bool, pub metadata: Option<Vec<u8>>, }
An internal type for a block's common elements.
Fields
header: Header
Executed block header.
transactions: Vec<SignedTransaction>
Executed transactions.
uncles: Vec<Header>
Uncles.
receipts: Vec<Receipt>
Transaction receipts.
transactions_set: HashSet<H256>
Hashes of already executed transactions.
state: State<StateDB>
Underlaying state.
traces: Tracing
Transaction traces.
last_hashes: Arc<LastHashes>
Hashes of last 256 blocks.
is_finalized: bool
Finalization flag.
metadata: Option<Vec<u8>>
Block metadata.
Methods
impl ExecutedBlock
[src]
impl ExecutedBlock
pub fn env_info(&self) -> EnvInfo
[src]
pub fn env_info(&self) -> EnvInfo
Get the environment info concerning this block.
pub fn state_mut(&mut self) -> &mut State<StateDB>
[src]
pub fn state_mut(&mut self) -> &mut State<StateDB>
Get mutable access to a state.
pub fn traces_mut(&mut self) -> &mut Tracing
[src]
pub fn traces_mut(&mut self) -> &mut Tracing
Get mutable reference to traces.
Trait Implementations
impl Clone for ExecutedBlock
[src]
impl Clone for ExecutedBlock
fn clone(&self) -> ExecutedBlock
[src]
fn clone(&self) -> ExecutedBlock
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 IsBlock for ExecutedBlock
[src]
impl IsBlock for ExecutedBlock
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 uncles(&self) -> &[Header]
[src]
fn uncles(&self) -> &[Header]
Get all uncles in this block.
impl LiveBlock for ExecutedBlock
[src]
impl LiveBlock for ExecutedBlock
type Header = Header
The block header type;
fn header(&self) -> &Header
[src]
fn header(&self) -> &Header
Get a reference to the header.
fn uncles(&self) -> &[Header]
[src]
fn uncles(&self) -> &[Header]
Get a reference to the uncle headers. If the block type doesn't support uncles, return the empty slice. Read more
impl Transactions for ExecutedBlock
[src]
impl Transactions for ExecutedBlock
type Transaction = SignedTransaction
The transaction type.
fn transactions(&self) -> &[SignedTransaction]
[src]
fn transactions(&self) -> &[SignedTransaction]
Get a reference to the transactions in this block.
impl Finalizable for ExecutedBlock
[src]
impl Finalizable for ExecutedBlock
fn is_finalized(&self) -> bool
[src]
fn is_finalized(&self) -> bool
Get whether the block is finalized.
fn mark_finalized(&mut self)
[src]
fn mark_finalized(&mut self)
Mark the block as finalized.
impl WithMetadata for ExecutedBlock
[src]
impl WithMetadata for ExecutedBlock
Auto Trait Implementations
impl Send for ExecutedBlock
impl Send for ExecutedBlock
impl !Sync for ExecutedBlock
impl !Sync for ExecutedBlock