referrerpolicy=no-referrer-when-downgrade
pub trait HypotheticalOrConcreteCandidate {
    // Required methods
    fn commitments(&self) -> Option<&CandidateCommitments>;
    fn persisted_validation_data(&self) -> Option<&PersistedValidationData>;
    fn validation_code_hash(&self) -> Option<ValidationCodeHash>;
    fn parent_head_data_hash(&self) -> Hash;
    fn output_head_data_hash(&self) -> Option<Hash>;
    fn relay_parent(&self) -> Hash;
    fn candidate_hash(&self) -> CandidateHash;
}
Expand description

Trait for a hypothetical or concrete candidate, as needed when assessing the validity of a potential candidate.

Required Methods§

source

fn commitments(&self) -> Option<&CandidateCommitments>

Return a reference to the candidate commitments, if present.

source

fn persisted_validation_data(&self) -> Option<&PersistedValidationData>

Return a reference to the persisted validation data, if present.

source

fn validation_code_hash(&self) -> Option<ValidationCodeHash>

Return a reference to the validation code hash, if present.

source

fn parent_head_data_hash(&self) -> Hash

Return the parent head hash.

source

fn output_head_data_hash(&self) -> Option<Hash>

Return the output head hash, if present.

source

fn relay_parent(&self) -> Hash

Return the relay parent hash.

source

fn candidate_hash(&self) -> CandidateHash

Return the candidate hash.

Implementations on Foreign Types§

source§

impl HypotheticalOrConcreteCandidate for HypotheticalCandidate

Implementors§