diff --git a/x/conflict/keeper/msg_server_detection.go b/x/conflict/keeper/msg_server_detection.go index 3f92b6829b..5a2dbd3727 100644 --- a/x/conflict/keeper/msg_server_detection.go +++ b/x/conflict/keeper/msg_server_detection.go @@ -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) }