Fix `randomize_state` default params

This commit is contained in:
Hsiao-Wei Wang 2021-10-15 22:18:13 +08:00
parent 40869d6e39
commit b0b3733243
No known key found for this signature in database
GPG Key ID: 1111A8A81778319E
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ def randomize_attestation_participation(spec, state, rng=Random(8020)):
randomize_epoch_participation(spec, state, spec.get_current_epoch(state), rng)
def randomize_state(spec, state, rng=Random(8020), exit_fraction=None, slash_fraction=None):
def randomize_state(spec, state, rng=Random(8020), exit_fraction=0.5, slash_fraction=0.5):
set_some_new_deposits(spec, state, rng)
exit_random_validators(spec, state, rng, fraction=exit_fraction)
slash_random_validators(spec, state, rng, fraction=slash_fraction)