Beacon State V2 Interface Definition With Semantic Version Paths (#9125)

* v2 state initialize and semantic paths

* ensure build

* gaz changes to ignored build files

* gaz
This commit is contained in:
Raul Jordan
2021-06-30 10:06:19 -05:00
committed by GitHub
parent 4fb3e05124
commit b23f63a064
155 changed files with 1029 additions and 450 deletions

View File

@@ -11,7 +11,7 @@ go_library(
"//beacon-chain/core/helpers:go_default_library",
"//beacon-chain/core/state:go_default_library",
"//beacon-chain/state/interface:go_default_library",
"//beacon-chain/state/stateV0:go_default_library",
"//beacon-chain/state/v1:go_default_library",
"//proto/beacon/p2p/v1:go_default_library",
"//proto/eth/v1alpha1:go_default_library",
"//shared/benchutil:go_default_library",

View File

@@ -13,7 +13,7 @@ import (
"github.com/prysmaticlabs/prysm/beacon-chain/core/helpers"
"github.com/prysmaticlabs/prysm/beacon-chain/core/state"
iface "github.com/prysmaticlabs/prysm/beacon-chain/state/interface"
"github.com/prysmaticlabs/prysm/beacon-chain/state/stateV0"
"github.com/prysmaticlabs/prysm/beacon-chain/state/v1"
pb "github.com/prysmaticlabs/prysm/proto/beacon/p2p/v1"
ethpb "github.com/prysmaticlabs/prysm/proto/eth/v1alpha1"
"github.com/prysmaticlabs/prysm/shared/benchutil"
@@ -215,5 +215,5 @@ func genesisBeaconState() (iface.BeaconState, error) {
if err := genesisState.UnmarshalSSZ(beaconBytes); err != nil {
return nil, errors.Wrap(err, "cannot unmarshal genesis state file")
}
return stateV0.InitializeFromProtoUnsafe(genesisState)
return v1.InitializeFromProtoUnsafe(genesisState)
}