From ef38c43d09cd7aa4a5afd8c59d25ea811eac2a2d Mon Sep 17 00:00:00 2001 From: terence tsao Date: Thu, 15 Apr 2021 06:29:19 -0700 Subject: [PATCH] Add VerifyNilBeaconBlock to ProcessBlock --- beacon-chain/core/state/transition.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/beacon-chain/core/state/transition.go b/beacon-chain/core/state/transition.go index cff7cfa93c45..2ccb987851e3 100644 --- a/beacon-chain/core/state/transition.go +++ b/beacon-chain/core/state/transition.go @@ -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 {