Skip to main content

read_active_and_known_peers_at_block_hash_v1

Function read_active_and_known_peers_at_block_hash_v1 

Source
pub(crate) fn read_active_and_known_peers_at_block_hash_v1(
    node: &TempoFullNode,
    known: &Set<PublicKey>,
    hash: B256,
) -> Result<Map<PublicKey, Address>>
Expand description

Returns all validator config v1 entries at block hash.

Reads the validator config v1 contract at the block state identified by hash and retains all validators for which $entry.active = true or for which $entry.publicKey is in known.