diff --git a/consensus/consortium/v2/consortium.go b/consensus/consortium/v2/consortium.go index 83bc8162a..cd7682c0d 100644 --- a/consensus/consortium/v2/consortium.go +++ b/consensus/consortium/v2/consortium.go @@ -1304,11 +1304,15 @@ func (c *Consortium) Finalize(chain consensus.ChainHeaderReader, header *types.H } } if c.IsPeriodBlock(chain, header, nil) { - return verifyValidatorExtraDataWithContract(checkpointValidators, extraData, true, true) + if err := verifyValidatorExtraDataWithContract(checkpointValidators, extraData, true, true); err != nil { + return err + } } } else { isShillin := c.chainConfig.IsShillin(header.Number) - return verifyValidatorExtraDataWithContract(checkpointValidators, extraData, isShillin, false) + if err := verifyValidatorExtraDataWithContract(checkpointValidators, extraData, isShillin, false); err != nil { + return err + } } }