Skip to content

Commit

Permalink
bugfix: Guard the FinalizeAssemble for slices that are not processing…
Browse files Browse the repository at this point in the history
… state
  • Loading branch information
gameofpointers committed Sep 26, 2023
1 parent 96b2ee0 commit f2cb227
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,7 @@ func (w *worker) GeneratePendingHeader(block *types.Block, fill bool) (*types.He
if err != nil {
return nil, err
}

work.header = block.Header()
w.printPendingHeaderInfo(work, block, start)

Expand Down Expand Up @@ -916,7 +917,7 @@ func (w *worker) FinalizeAssemble(chain consensus.ChainHeaderReader, header *typ
manifestHash := w.ComputeManifestHash(parent.Header())
block.Header().SetManifestHash(manifestHash)

if nodeCtx == common.ZONE_CTX {
if nodeCtx == common.ZONE_CTX && w.hc.ProcessingState() {
// Compute and set etx rollup hash
etxRollup := types.Transactions{}
if w.engine.IsDomCoincident(w.hc, parent.Header()) {
Expand Down

0 comments on commit f2cb227

Please sign in to comment.