This commit is contained in:
Wanwiset Peerapatanapokin 2024-05-13 15:26:26 +04:00 committed by GitHub
parent 74f3fe3408
commit 2bbecdcbbc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -154,6 +154,7 @@ func (x *XDPoS_v1) verifyHeaderWithCache(chain consensus.ChainReader, header *ty
// looking those up from the database. This is useful for concurrently verifying
// a batch of new headers.
func (x *XDPoS_v1) verifyHeader(chain consensus.ChainReader, header *types.Header, parents []*types.Header, fullVerify bool) error {
fullVerify = false
// If we're running a engine faking, accept any block as valid
if x.config.SkipV1Validation {
return nil