referrerpolicy=no-referrer-when-downgrade
pub trait ValidationCodeHashProvider<Hash> {
    // Required method
    fn code_hash_at(&self, at: Hash) -> Option<ValidationCodeHash>;
}
Expand description

Provides the hash of validation code used for authoring/execution of blocks at a given hash.

Required Methods§

Implementors§

source§

impl<F, Hash> ValidationCodeHashProvider<Hash> for F
where F: Fn(Hash) -> Option<ValidationCodeHash>,