Skip to content

Commit

Permalink
Merge pull request #6659 from multiversx/fix_header_verification
Browse files Browse the repository at this point in the history
Fix header verification after equivalent proofs
  • Loading branch information
AdoAdoAdo authored Dec 11, 2024
2 parents 47279c4 + 6933285 commit d0ec90f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions process/headerCheck/headerSignatureVerify.go
Original file line number Diff line number Diff line change
Expand Up @@ -438,9 +438,11 @@ func (hsv *HeaderSigVerifier) copyHeaderWithoutSig(header data.HeaderHandler) (d
return nil, err
}

err = headerCopy.SetLeaderSignature(nil)
if err != nil {
return nil, err
if !hsv.enableEpochsHandler.IsFlagEnabledInEpoch(common.EquivalentMessagesFlag, header.GetEpoch()) {
err = headerCopy.SetLeaderSignature(nil)
if err != nil {
return nil, err
}
}

return headerCopy, nil
Expand Down

0 comments on commit d0ec90f

Please sign in to comment.