mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 23:48:06 -05:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user