[][src]Struct safety_rules::SafetyRules

pub struct SafetyRules { /* fields omitted */ }

@TODO consider a cache of verified QCs to cut down on verification costs

Implementations

impl SafetyRules[src]

pub fn new(
    persistent_storage: PersistentSafetyStorage,
    verify_vote_proposal_signature: bool
) -> Self
[src]

Constructs a new instance of SafetyRules with the given persistent storage and the consensus private keys

pub fn construct_ledger_info(
    &self,
    proposed_block: &Block
) -> Result<LedgerInfo, Error>
[src]

Produces a LedgerInfo that either commits a block based upon the 3-chain commit rule or an empty LedgerInfo for no commit. The 3-chain commit rule is: B0 and its prefixes can be committed if there exist certified blocks B1 and B2 that satisfy:

  1. B0 <- B1 <- B2 <--
  2. round(B0) + 1 = round(B1), and
  3. round(B1) + 1 = round(B2).

Trait Implementations

impl TSafetyRules for SafetyRules[src]

Auto Trait Implementations

impl RefUnwindSafe for SafetyRules

impl Send for SafetyRules

impl Sync for SafetyRules

impl Unpin for SafetyRules

impl UnwindSafe for SafetyRules

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,