Merge pull request #586 from gzliudan/fix-v200-sync

fix v2.0.0 sync problem for mainnet
This commit is contained in:
Liam 2024-07-22 00:03:07 -07:00 committed by GitHub
commit ad49e17909
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -154,7 +154,6 @@ 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