pub enum FuelBlockConsensus {
PoA(FuelBlockPoAConsensus),
Genesis(Genesis),
}
Expand description
The consensus related data that doesn’t live on the header.
Variants§
PoA(FuelBlockPoAConsensus)
Genesis(Genesis)
The genesis block defines the consensus rules for future blocks.
Implementations§
source§impl FuelBlockConsensus
impl FuelBlockConsensus
sourcepub fn block_producer(&self, block_id: &BlockId) -> Result<Address>
pub fn block_producer(&self, block_id: &BlockId) -> Result<Address>
Retrieve the block producer address from the consensus data
Trait Implementations§
source§impl Clone for FuelBlockConsensus
impl Clone for FuelBlockConsensus
source§fn clone(&self) -> FuelBlockConsensus
fn clone(&self) -> FuelBlockConsensus
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more