Module network_config

Module network_config 

Source
Expand description

Fetching hotshot network config

Functions§

fetch_epoch_config_from_sequencer
Get the epoch-related from the sequencer’s PublicHotShotConfig struct return (blocks_per_epoch, epoch_start_block)
fetch_stake_table_from_sequencer
Fetch the stake table from a sequencer node given the epoch number
light_client_genesis
Returns both genesis light client state and stake table state
light_client_genesis_from_stake_table
derive the genesis light client state and stake table state from initial set of PeerConfig