Skip to content

Commit 2bbecdc

Browse files
authored
revert #497 behavior for v1 engine (#531)
1 parent 74f3fe3 commit 2bbecdc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

consensus/XDPoS/engines/engine_v1/engine.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ func (x *XDPoS_v1) verifyHeaderWithCache(chain consensus.ChainReader, header *ty
154154
// looking those up from the database. This is useful for concurrently verifying
155155
// a batch of new headers.
156156
func (x *XDPoS_v1) verifyHeader(chain consensus.ChainReader, header *types.Header, parents []*types.Header, fullVerify bool) error {
157+
fullVerify = false
157158
// If we're running a engine faking, accept any block as valid
158159
if x.config.SkipV1Validation {
159160
return nil

0 commit comments

Comments
 (0)