Struct exonum::node::state::BlockState
[−]
[src]
pub struct BlockState { /* fields omitted */ }
State of a block.
Methods
impl BlockState
[src]
pub fn new(
hash: Hash,
patch: Patch,
txs: Vec<Hash>,
proposer_id: ValidatorId
) -> Self
[src]
hash: Hash,
patch: Patch,
txs: Vec<Hash>,
proposer_id: ValidatorId
) -> Self
Creates a new BlockState
instance with the given parameters.
pub fn hash(&self) -> Hash
[src]
Returns hash of the block.
pub fn patch(&self) -> &Patch
[src]
Returns the changes that should be made for block committing.
pub fn txs(&self) -> &Vec<Hash>
[src]
Returns block's transactions.
pub fn proposer_id(&self) -> ValidatorId
[src]
Returns id of the validator that proposed the block.
Trait Implementations
impl Clone for BlockState
[src]
fn clone(&self) -> BlockState
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more