Skip to main content

Meta

Trait Meta 

Source
trait Meta {
    const UNSIGNED_AT_GENESIS_ALLOWED: bool = false;

    // Required method
    fn consistent_with(&self, view: ViewNumber, epoch_height: u64) -> bool;
}
Expand description

Meta information about vote data.

Provided Associated Constants§

Required Methods§

Source

fn consistent_with(&self, view: ViewNumber, epoch_height: u64) -> bool

Whether the data is consistent, internally and with the certificate’s view.

Checked in check, so a certificate failing it is never recorded as verified and cannot retire its key for other senders. It runs before the genesis exemption, which therefore cannot skip it.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Meta for TimeoutData2

Source§

fn consistent_with(&self, view: ViewNumber, _: u64) -> bool

Source§

impl<T: NodeType> Meta for QuorumData2<T>

Source§

impl<T: NodeType> Meta for Vote2Data<T>

Source§

fn consistent_with(&self, _: ViewNumber, epoch_height: u64) -> bool

Implementors§