Update Configuration, Naming, and GenesisStart to Accommodate Randao (#1647)

* signature on startup configuration

* remove ref to hash32s for randao

* completed changes
This commit is contained in:
Raul Jordan
2019-02-19 14:24:00 -06:00
committed by GitHub
parent ef4a7e07cc
commit 2425bef5c7
21 changed files with 445 additions and 441 deletions

View File

@@ -18,7 +18,7 @@ func TestRandaoMix_Ok(t *testing.T) {
binary.LittleEndian.PutUint64(intInBytes, uint64(i))
randaoMixes[i] = intInBytes
}
state := &pb.BeaconState{LatestRandaoMixesHash32S: randaoMixes}
state := &pb.BeaconState{LatestRandaoMixes: randaoMixes}
tests := []struct {
epoch uint64
randaoMix []byte
@@ -132,9 +132,9 @@ func TestGenerateSeed_Ok(t *testing.T) {
}
slot := 10 * params.BeaconConfig().MinSeedLookahead * params.BeaconConfig().SlotsPerEpoch
state := &pb.BeaconState{
LatestIndexRootHash32S: activeIndexRoots,
LatestRandaoMixesHash32S: randaoMixes,
Slot: slot}
LatestIndexRootHash32S: activeIndexRoots,
LatestRandaoMixes: randaoMixes,
Slot: slot}
got, err := GenerateSeed(state, 10)
if err != nil {