mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 23:48:06 -05:00
Remove optional verifyTree argument (#3047)
* remove optional verifyTree argument * remove fmt * do not provide a default eth1data, return an error instead * add a test for this new logic * gaz
This commit is contained in:
committed by
Raul Jordan
parent
1d71398b7c
commit
6a930ba175
@@ -92,7 +92,7 @@ func setUpGenesisStateAndBlock(beaconDB *db.BeaconDB, t *testing.T) {
|
||||
ctx := context.Background()
|
||||
genesisTime := time.Now()
|
||||
unixTime := uint64(genesisTime.Unix())
|
||||
if err := beaconDB.InitializeState(context.Background(), unixTime, []*ethpb.Deposit{}, nil); err != nil {
|
||||
if err := beaconDB.InitializeState(context.Background(), unixTime, []*ethpb.Deposit{}, ðpb.Eth1Data{}); err != nil {
|
||||
t.Fatalf("could not initialize beacon state to disk: %v", err)
|
||||
}
|
||||
beaconState, err := beaconDB.HeadState(ctx)
|
||||
|
||||
Reference in New Issue
Block a user