Skip to content

Commit

Permalink
chore: reverse sign request id
Browse files Browse the repository at this point in the history
  • Loading branch information
lklimek committed Jan 3, 2024
1 parent db1e2f0 commit b7c67dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion types/vote_extension.go
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,8 @@ func (e ThresholdRawVoteExtension) SignItem(_ string, height int64, round int32,
ext := &e.VoteExtension

if ext.XSignRequestId != nil && ext.XSignRequestId.Size() > 0 {
signRequestID = crypto.Checksum(crypto.Checksum(ext.GetSignRequestId()))
receivedReqID := tmbytes.Reverse(ext.GetSignRequestId())
signRequestID = crypto.Checksum(crypto.Checksum(receivedReqID)) // reverse ext.GetSignRequestId()?
} else {
if signRequestID, err = voteExtensionRequestID(height, round); err != nil {
return crypto.SignItem{}, err
Expand Down

0 comments on commit b7c67dc

Please sign in to comment.