update state_sim from get_crosslink_committee(...) to get_beacon_committee(...)

This commit is contained in:
Dustin Brody 2019-11-14 19:37:08 +01:00
parent cd45b8b43f
commit e32bbac600
No known key found for this signature in database
GPG Key ID: 3D7A11A0156519DC
1 changed files with 3 additions and 4 deletions

View File

@ -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