Exemple #1
0
def genesis_active_state(beacon_config):
    return get_genesis_active_state(beacon_config)
Exemple #2
0
def test_get_genesis_active_state(cycle_length):
    active_state = get_genesis_active_state(cycle_length)
    assert active_state.num_pending_attestations == 0
    assert active_state.num_recent_block_hashes == cycle_length * 2
Exemple #3
0
def genesis_active_state(cycle_length):
    return get_genesis_active_state(cycle_length)
def test_get_genesis_active_state(beacon_config):
    active_state = get_genesis_active_state(beacon_config)
    assert active_state.num_pending_attestations == 0
    assert active_state.num_recent_block_hashes == beacon_config.cycle_length * 2