referrerpolicy=no-referrer-when-downgrade
polkadot_node_subsystem_util::inclusion_emulator

Trait HypotheticalOrConcreteCandidate

Source
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§