Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
oren-lava committed Sep 22, 2024
1 parent 21bd4ff commit 9218823
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x/conflict/keeper/msg_server_detection.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ import (
)

// DetectionIndex creates an index for detection instances.
// WARNING: the detection index should not be used for prefixed iteration.
// WARNING: the detection index should not be used for prefixed iteration since it doesn't contain delimeters
// thus it's not sanitized for such iterations and could cause issues in the future as the codebase evolves.
func DetectionIndex(creatorAddr string, conflict *types.ResponseConflict, epochStart uint64) string {
return creatorAddr + conflict.ConflictRelayData0.Request.RelaySession.Provider + conflict.ConflictRelayData1.Request.RelaySession.Provider + strconv.FormatUint(epochStart, 10)
}
Expand Down

0 comments on commit 9218823

Please sign in to comment.