Improve DX for loading validator keys from file

This commit is contained in:
Paul Hauner
2019-03-12 14:39:16 +11:00
parent f34ae86cde
commit cce88c9923
11 changed files with 119 additions and 51 deletions

View File

@@ -10,7 +10,7 @@ fn runs_without_error() {
let spec = ChainSpec::few_validators();
let mut builder = TestingBeaconStateBuilder::new(8, None, &spec);
let mut builder = TestingBeaconStateBuilder::from_deterministic_keypairs(8, &spec);
let target_slot = (spec.genesis_epoch + 4).end_slot(spec.slots_per_epoch);
builder.teleport_to_slot(target_slot, &spec);