Skip to content

Commit

Permalink
Add VerifyNilBeaconBlock to ProcessBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
terencechain committed Apr 15, 2021
1 parent aa348ad commit ef38c43
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions beacon-chain/core/state/transition.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,10 @@ func ProcessBlock(
defer span.End()

var err error
if err = helpers.VerifyNilBeaconBlock(signed); err != nil {
return nil, err
}

for _, p := range processingPipeline {
state, err = p(ctx, state, signed)
if err != nil {
Expand Down

0 comments on commit ef38c43

Please sign in to comment.