From 3ac4b9e63e689c5f35d456c9c46b6ef07e782d4d Mon Sep 17 00:00:00 2001 From: wanwiset25 Date: Fri, 10 May 2024 19:34:52 +0400 Subject: [PATCH] revert https://github.com/XinFinOrg/XDPoSChain/pull/497 behavior for v1 engine --- consensus/XDPoS/engines/engine_v1/engine.go | 1 + 1 file changed, 1 insertion(+) diff --git a/consensus/XDPoS/engines/engine_v1/engine.go b/consensus/XDPoS/engines/engine_v1/engine.go index 7fce2e6a8676..7a862370c8e0 100644 --- a/consensus/XDPoS/engines/engine_v1/engine.go +++ b/consensus/XDPoS/engines/engine_v1/engine.go @@ -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