Merge pull request #87 from openrelayxyz/bugifx/engine-wrapper-dummyseals

Fixed a patch in the engine wrapper.
This commit is contained in:
AusIV 2023-09-11 13:39:55 -05:00 committed by GitHub
commit 3993f2f870
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -381,7 +381,7 @@ func (ew *engineWrapper) VerifyHeaders(chain consensus.ChainHeaderReader, header
for i, header := range headers { for i, header := range headers {
pheaders[i] = gethToUtilsHeader(header) pheaders[i] = gethToUtilsHeader(header)
} }
dummySeals := []bool{false, false} dummySeals := make([]bool, len(headers))
return ew.engine.VerifyHeaders(&WrappedHeaderReader{chain, nil}, pheaders, dummySeals) return ew.engine.VerifyHeaders(&WrappedHeaderReader{chain, nil}, pheaders, dummySeals)
} }
func (ew *engineWrapper) VerifyUncles(chain consensus.ChainReader, block *types.Block) error { func (ew *engineWrapper) VerifyUncles(chain consensus.ChainReader, block *types.Block) error {