Skip to content

Commit

Permalink
comment TODO for future work
Browse files Browse the repository at this point in the history
  • Loading branch information
leonz789 committed Sep 2, 2024
1 parent c1c5ba9 commit 0917b11
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions x/oracle/keeper/nonce.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ func (k Keeper) removeNonceWithValidator(store prefix.Store, validator string) {

func (k Keeper) removeNonceWithValidatorAndFeederID(store prefix.Store, validator string, feederID uint64) bool {
if nonce, found := k.getNonce(store, validator); found {
// TODO: performance. key-value: validator_feederID:nonce
for i, n := range nonce.NonceList {
if n.FeederID == feederID {
nonce.NonceList = append(nonce.NonceList[:i], nonce.NonceList[i+1:]...)
Expand Down

0 comments on commit 0917b11

Please sign in to comment.