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 ExecutedBlockpub fn env_info(&self) -> EnvInfo[src]
pub fn env_info(&self) -> EnvInfoGet 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 TracingGet mutable reference to traces.
Trait Implementations
impl Clone for ExecutedBlock[src]
impl Clone for ExecutedBlockfn clone(&self) -> ExecutedBlock[src]
fn clone(&self) -> ExecutedBlockReturns 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 ExecutedBlockfn block(&self) -> &ExecutedBlock[src]
fn block(&self) -> &ExecutedBlockGet the ExecutedBlock associated with this object.
fn to_base(&self) -> Block[src]
fn to_base(&self) -> BlockGet the base Block object associated with this.
fn header(&self) -> &Header[src]
fn header(&self) -> &HeaderGet 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 ExecutedBlocktype Header = Header
The block header type;
fn header(&self) -> &Header[src]
fn header(&self) -> &HeaderGet 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 ExecutedBlocktype 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 ExecutedBlockfn is_finalized(&self) -> bool[src]
fn is_finalized(&self) -> boolGet 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 ExecutedBlockAuto Trait Implementations
impl Send for ExecutedBlock
impl Send for ExecutedBlockimpl !Sync for ExecutedBlock
impl !Sync for ExecutedBlock