Beispiel #1
0
def genesis_active_state(config):
    return get_genesis_active_state(config)
Beispiel #2
0
def test_get_genesis_active_state(config):
    active_state = get_genesis_active_state(config)
    assert active_state.num_pending_attestations == 0
    assert active_state.num_recent_block_hashes == config['cycle_length'] * 2
    assert len(active_state.chain.blocks) == 0
    assert active_state.chain.head is None