mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
tiny fix
This commit is contained in:
parent
d7a7385fa9
commit
9478c634f2
1 changed files with 2 additions and 1 deletions
|
|
@ -960,7 +960,8 @@ func (c *Posv) RecoverValidator(header *types.Header) (common.Address, error) {
|
||||||
if address, known := c.validatorSignatures.Get(hash); known {
|
if address, known := c.validatorSignatures.Get(hash); known {
|
||||||
return address.(common.Address), nil
|
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 {
|
if len(header.Validator) != extraSeal {
|
||||||
return common.Address{}, consensus.ErrMissingValidatorSignature
|
return common.Address{}, consensus.ErrMissingValidatorSignature
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue