consensus: remove seal verification from the consensus engine interface (#22274)

This commit is contained in:
Guillaume Ballet
2021-02-05 19:44:34 +01:00
committed by GitHub
parent 7ed860d4f1
commit e74bd587f7
5 changed files with 4 additions and 20 deletions

View File

@ -434,12 +434,6 @@ func (c *Clique) VerifyUncles(chain consensus.ChainReader, block *types.Block) e
return nil
}
// VerifySeal implements consensus.Engine, checking whether the signature contained
// in the header satisfies the consensus protocol requirements.
func (c *Clique) VerifySeal(chain consensus.ChainHeaderReader, header *types.Header) error {
return c.verifySeal(chain, header, nil)
}
// verifySeal checks whether the signature contained in the header satisfies the
// consensus protocol requirements. The method accepts an optional list of parent
// headers that aren't yet part of the local blockchain to generate the snapshots