From bb33c798de44437765f555dc4dec36921960029e Mon Sep 17 00:00:00 2001 From: philip-morlier Date: Sun, 10 Sep 2023 13:29:51 -0700 Subject: [PATCH] Fixed a patch in the engine wrapper. In order to keep our utils interfaces as generic as possible across chains I added a "dummySeals" []bool to the engine wrapper. Up until now the slice was a fixed size. From this point it has the same length as the []*headers argument also passed into the same function. --- plugins/wrappers/engine/enginewrapper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/wrappers/engine/enginewrapper.go b/plugins/wrappers/engine/enginewrapper.go index 92304e730..842700b95 100644 --- a/plugins/wrappers/engine/enginewrapper.go +++ b/plugins/wrappers/engine/enginewrapper.go @@ -381,7 +381,7 @@ func (ew *engineWrapper) VerifyHeaders(chain consensus.ChainHeaderReader, header for i, header := range headers { pheaders[i] = gethToUtilsHeader(header) } - dummySeals := []bool{false, false} + dummySeals := make([]bool, len(headers)) return ew.engine.VerifyHeaders(&WrappedHeaderReader{chain, nil}, pheaders, dummySeals) } func (ew *engineWrapper) VerifyUncles(chain consensus.ChainReader, block *types.Block) error {