Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: weird reslicing in SetForValoper - fixes #806 #812

Merged
merged 2 commits into from
Dec 10, 2023

Conversation

joe-bowman
Copy link
Contributor

1. Summary

Fixes #806

Improves performance and reduces complexity in ValidatorIntents.SetForValoper.

2.Type of change

  • Bug fix (non-breaking change which fixes an issue)

3. Implementation details

Replace in place, instead of remove + append + sort.

Copy link

codecov bot commented Nov 30, 2023

Codecov Report

Merging #812 (460bb89) into main (63beaa3) will increase coverage by 0.01%.
Report is 1 commits behind head on main.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #812      +/-   ##
==========================================
+ Coverage   61.96%   61.98%   +0.01%     
==========================================
  Files         172      172              
  Lines       14028    14033       +5     
==========================================
+ Hits         8693     8698       +5     
  Misses       4596     4596              
  Partials      739      739              
Flag Coverage Δ
unittests 61.98% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
x/interchainstaking/types/delegation.go 91.22% <100.00%> (+0.40%) ⬆️

@faddat
Copy link
Contributor

faddat commented Dec 5, 2023

checking now

Copy link
Contributor

@faddat faddat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@faddat faddat merged commit 8353464 into main Dec 10, 2023
12 checks passed
@joe-bowman joe-bowman deleted the fix/806-weird-reslicing branch December 19, 2023 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants