Skip to main content

Module validators

Module validators 

Source

Structsยง

DecodedValidatorV1 ๐Ÿ”’
A ContractValidator is a peer read from the validator config smart const.
DecodedValidatorV2 ๐Ÿ”’
An entry in the validator config v2 contract with all its fields decoded into Rust types.

Functionsยง

can_use_v2_at_block_hash ๐Ÿ”’
Returns if the validator config v2 can be used exactly at hash and the timestamp of the corresponding header.
is_v2_initialized_at_block_hash ๐Ÿ”’
read_active_and_known_peers_at_block_hash ๐Ÿ”’
Returns all active validators read from block state at block hash.
read_active_and_known_peers_at_block_hash_v1 ๐Ÿ”’
Returns all validator config v1 entries at block hash.
read_active_and_known_peers_at_block_hash_v2 ๐Ÿ”’
Returns active validator config v2 entries at block hash.
read_validator_config_at_block_hash ๐Ÿ”’
Reads the validator state at the given block hash.
v2_initialization_height_at_block_hash ๐Ÿ”’