Skip to content

Commit

Permalink
Merge branch 'feat/equivalent-messages' into equivalent-proofs-stabil…
Browse files Browse the repository at this point in the history
…ization-2
  • Loading branch information
AdoAdoAdo authored Jan 20, 2025
2 parents 3d6e7d3 + 72bcd3f commit 5b1e341
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions process/block/baseProcess.go
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,7 @@ func (bp *baseProcessor) sortHeadersForCurrentBlockByNonce(usedInBlock bool) (ma
}

if bp.hasMissingProof(headerInfo, hdrHash) {
bp.hdrsForCurrBlock.mutHdrsForBlock.RUnlock()
return nil, fmt.Errorf("%w for header with hash %s", process.ErrMissingHeaderProof, hex.EncodeToString([]byte(hdrHash)))
}

Expand All @@ -660,6 +661,7 @@ func (bp *baseProcessor) sortHeaderHashesForCurrentBlockByNonce(usedInBlock bool
}

if bp.hasMissingProof(headerInfo, metaBlockHash) {
bp.hdrsForCurrBlock.mutHdrsForBlock.RUnlock()
return nil, fmt.Errorf("%w for header with hash %s", process.ErrMissingHeaderProof, hex.EncodeToString([]byte(metaBlockHash)))
}

Expand Down

0 comments on commit 5b1e341

Please sign in to comment.