Skip to content

Commit

Permalink
added warning comment on detection index
Browse files Browse the repository at this point in the history
  • Loading branch information
oren-lava committed Sep 4, 2024
1 parent 3f06d24 commit 50a264f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x/conflict/keeper/msg_server_detection.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import (
"golang.org/x/exp/slices"
)

// DetectionIndex creates an index for detection instances.
// WARNING: the detection index should not be used for prefixed iteration.
func DetectionIndex(creatorAddr string, conflict *types.ResponseConflict, epochStart uint64) string {
if conflict.IsDataNil() {
return ""
Expand Down

0 comments on commit 50a264f

Please sign in to comment.