diff --git a/beacon-chain/blockchain/service.go b/beacon-chain/blockchain/service.go index 83a98d02c..52d485ef4 100644 --- a/beacon-chain/blockchain/service.go +++ b/beacon-chain/blockchain/service.go @@ -166,16 +166,16 @@ func (c *ChainService) initializeBeaconChain(genesisTime time.Time, deposits []* return nil, fmt.Errorf("could not set chain head, %v", err) } if err := c.beaconDB.SaveJustifiedBlock(genBlock); err != nil { - return nil, fmt.Errorf("could not save gensis block as justified block: %v", err) + return nil, fmt.Errorf("could not save genesis block as justified block: %v", err) } if err := c.beaconDB.SaveFinalizedBlock(genBlock); err != nil { - return nil, fmt.Errorf("could not save gensis block as finalized block: %v", err) + return nil, fmt.Errorf("could not save genesis block as finalized block: %v", err) } if err := c.beaconDB.SaveJustifiedState(beaconState); err != nil { - return nil, fmt.Errorf("could not save gensis state as justified state: %v", err) + return nil, fmt.Errorf("could not save genesis state as justified state: %v", err) } if err := c.beaconDB.SaveFinalizedState(beaconState); err != nil { - return nil, fmt.Errorf("could not save gensis state as finalized state: %v", err) + return nil, fmt.Errorf("could not save genesis state as finalized state: %v", err) } return beaconState, nil } diff --git a/beacon-chain/core/epoch/epoch_processing_test.go b/beacon-chain/core/epoch/epoch_processing_test.go index 58109535d..0639210ec 100644 --- a/beacon-chain/core/epoch/epoch_processing_test.go +++ b/beacon-chain/core/epoch/epoch_processing_test.go @@ -300,7 +300,7 @@ func TestWinningCrosslink_CantGetMatchingAtts(t *testing.T) { } } -func TestWinningCrosslink_ReturnGensisCrosslink(t *testing.T) { +func TestWinningCrosslink_ReturnGenesisCrosslink(t *testing.T) { e := params.BeaconConfig().SlotsPerEpoch gs := uint64(0) // genesis slot ge := uint64(0) // genesis epoch @@ -323,7 +323,7 @@ func TestWinningCrosslink_ReturnGensisCrosslink(t *testing.T) { t.Fatal(err) } if len(indices) != 0 { - t.Errorf("gensis crosslink indices is not 0, got: %d", len(indices)) + t.Errorf("genesis crosslink indices is not 0, got: %d", len(indices)) } if !reflect.DeepEqual(crosslink, gCrosslink) { t.Errorf("Did not get genesis crosslink, got: %v", crosslink) @@ -396,7 +396,7 @@ func TestWinningCrosslink_CanGetWinningRoot(t *testing.T) { t.Fatal(err) } if len(indices) != 0 { - t.Errorf("gensis crosslink indices is not 0, got: %d", len(indices)) + t.Errorf("genesis crosslink indices is not 0, got: %d", len(indices)) } want := ðpb.Crosslink{StartEpoch: ge, Shard: 1, DataRoot: []byte{'B'}} if !reflect.DeepEqual(winner, want) { diff --git a/beacon-chain/core/state/spectest/genesis_validity.yaml.go b/beacon-chain/core/state/spectest/genesis_validity.yaml.go index ac63858d0..1f7420ada 100644 --- a/beacon-chain/core/state/spectest/genesis_validity.yaml.go +++ b/beacon-chain/core/state/spectest/genesis_validity.yaml.go @@ -5,7 +5,7 @@ package spectest import pb "github.com/prysmaticlabs/prysm/proto/beacon/p2p/v1" -type GensisValidityTest struct { +type GenesisValidityTest struct { Title string `json:"title"` Summary string `json:"summary"` ForksTimeline string `json:"forks_timeline"` diff --git a/beacon-chain/core/state/spectest/genesis_validity_minimal_test.go b/beacon-chain/core/state/spectest/genesis_validity_minimal_test.go index aba612fb5..b0b939999 100644 --- a/beacon-chain/core/state/spectest/genesis_validity_minimal_test.go +++ b/beacon-chain/core/state/spectest/genesis_validity_minimal_test.go @@ -21,7 +21,7 @@ func TestGenesisValidityMinimal(t *testing.T) { t.Fatalf("Could not load file %v", err) } - s := &GensisValidityTest{} + s := &GenesisValidityTest{} if err := testutil.UnmarshalYaml(file, s); err != nil { t.Fatalf("Failed to Unmarshal: %v", err) }