Skip to content

Commit

Permalink
Merge branch 'feat/equivalent-messages' into integrate-proof-check-on…
Browse files Browse the repository at this point in the history
…-sync
  • Loading branch information
ssd04 authored Dec 16, 2024
2 parents d5b069f + d0ec90f commit dd70b0d
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 @@ -439,9 +439,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 dd70b0d

Please sign in to comment.