diff --git a/consensus/posv/posv.go b/consensus/posv/posv.go index 198f8df3b6..82d6c4f164 100644 --- a/consensus/posv/posv.go +++ b/consensus/posv/posv.go @@ -960,7 +960,8 @@ func (c *Posv) RecoverValidator(header *types.Header) (common.Address, error) { if address, known := c.validatorSignatures.Get(hash); known { return address.(common.Address), nil } - // Retrieve the signature from the header extra-data + // Retrieve the signature from the header.Validator + // len equals 65 bytes if len(header.Validator) != extraSeal { return common.Address{}, consensus.ErrMissingValidatorSignature }