Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/prysmaticlabs/prysm into …
Browse files Browse the repository at this point in the history
…simplify-validator
  • Loading branch information
0xKiwi committed Apr 10, 2020
2 parents 629c1db + 1d8b207 commit 9f994c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions beacon-chain/core/blocks/block_operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ func ProcessProposerSlashings(
return beaconState, nil
}

// VerifyProposerSlashing verifies that the data provided fro slashing is valid.
// VerifyProposerSlashing verifies that the data provided from slashing is valid.
func VerifyProposerSlashing(
beaconState *stateTrie.BeaconState,
slashing *ethpb.ProposerSlashing,
Expand All @@ -472,7 +472,7 @@ func VerifyProposerSlashing(
return fmt.Errorf("validator with key %#x is not slashable", proposer.PublicKey)
}
// Using headerEpoch1 here because both of the headers should have the same epoch.
domain, err := helpers.Domain(beaconState.Fork(), helpers.StartSlot(slashing.Header_1.Header.Slot), params.BeaconConfig().DomainBeaconProposer)
domain, err := helpers.Domain(beaconState.Fork(), helpers.SlotToEpoch(slashing.Header_1.Header.Slot), params.BeaconConfig().DomainBeaconProposer)
if err != nil {
return err
}
Expand Down

0 comments on commit 9f994c8

Please sign in to comment.