From e32bbac600742dbf008788fc6e2ffe796c2683de Mon Sep 17 00:00:00 2001 From: Dustin Brody Date: Thu, 14 Nov 2019 19:37:08 +0100 Subject: [PATCH] update state_sim from get_crosslink_committee(...) to get_beacon_committee(...) --- research/state_sim.nim | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/research/state_sim.nim b/research/state_sim.nim index 336550d64..0110749d6 100644 --- a/research/state_sim.nim +++ b/research/state_sim.nim @@ -41,7 +41,7 @@ cli do(slots = 448'u, validators = SLOTS_PER_EPOCH * 9, # One per shard is minimum json_interval = SLOTS_PER_EPOCH, prefix = 0, - attesterRatio {.desc: "ratio of validators that attest in each round"} = 0.9, + attesterRatio {.desc: "ratio of validators that attest in each round"} = 0.75, validate = true): let flags = if validate: {} else: {skipValidation} @@ -99,9 +99,8 @@ cli do(slots = 448'u, mapIt( 0'u64 .. (get_committee_count_at_slot(state, state.slot) * SLOTS_PER_EPOCH - 1), - get_crosslink_committee(state, epoch, - (it + get_start_shard(state, epoch)) mod SHARD_COUNT, - cache)) + get_beacon_committee(state, epoch.compute_start_slot_at_epoch + (it mod SLOTS_PER_EPOCH), + it div SLOTS_PER_EPOCH, cache)) for scas in scass: var