-
Notifications
You must be signed in to change notification settings - Fork 137
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
Refactor: Convert iterators to array getters #596
Merged
Merged
Changes from all commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
5e1a187
WIP convert iterators to array getters.
jtremback 9c7bf44
WIP - compiles, fixing tests
jtremback c19cb8d
Unit and e2e tests work
jtremback c1e693e
add notes about stopping iteration
jtremback 789997c
WIP - rename and add some notes
jtremback 43489eb
Add types to proto
jtremback ce77f0a
delete unused code
jtremback f00ac6d
resolve naming conflict
jtremback a82e5ee
implement another type as proto
jtremback b29f08e
fixing more stuff
jtremback b6cb90a
delete TODOJEHAN.md
jtremback 378f67d
adds many of Marius's iteration order comments from 599, and does som…
jtremback 2663554
fix nil pointer deref
jtremback 7ca833e
call GetAllConsumerChains once
mpoke 74aaebc
expand TestGetAllChannelToChains
mpoke f8613c7
expand TestGetAllUnbondingOps
mpoke 40ffea5
GetAllUnbondingOpIndexes; cleanup proto files
mpoke 643ae1c
fix GetAllValsetUpdateBlockHeights and UTs
mpoke b9706cf
remove GetAllSlashAck
mpoke 02eb634
add tests for GetFirstVscSendTimestamp
mpoke c67eb74
key assignment iterators
mpoke 58d5c28
reviewed proposals
mpoke f876368
add TestGetAllValsetUpdateBlockHeights
mpoke 63707e1
add TestGetAllOutstandingDowntimes
mpoke 8d4c4da
add GetElapsedPacketMaturityTimes
mpoke 28ad814
fix merge conflicts
mpoke d9f4358
fix linter
mpoke b14ff29
fix linter
mpoke 87ed959
prevent implicit memory aliasing
mpoke 4259d30
add UTC to TestPacketMaturityTime
mpoke e1fa7c7
fix TestPacketMaturityTime
mpoke 6a5136e
avoid local variable name shadowing
mpoke a5fee38
fix merge conflict
mpoke 9a04275
Merge branch 'main' into iterators-to-arrays
mpoke a2c93d2
Update x/ccv/consumer/keeper/keeper.go
mpoke 3b80893
replace cases with packets in TestPacketMaturityTime
mpoke 3e3f10b
add expected order to TestPacketMaturityTime
mpoke b4112f7
add expected order to TestGetAllHeightToValsetUpdateIDs
mpoke 4177544
add expected order to TestGetAllOutstandingDowntimes
mpoke 60732d5
add TestGetAllCCValidator
mpoke fe16a62
add expected order to TestGetAllConsumerChains
mpoke 5229c7e
add expected order to TestGetAllChannelToChains
mpoke 649d105
add expected order to TestGetAllUnbondingOps
mpoke 56f957e
add expected order to TestGetAllUnbondingOpIndexes
mpoke 9a7b31b
add expected order to TestGetAllValsetUpdateBlockHeights
mpoke 69b050b
add expected order to TestInitTimeoutTimestamp
mpoke 2aca355
add expected order to TestVscSendTimestamp
mpoke 4fc4736
add expected order to TestGetAllValidatorConsumerPubKey
mpoke ec5645c
add expected order to TestGetAllValidatorsByConsumerAddr
mpoke a2ec7bc
add expected order to TestGetAllKeyAssignmentReplacements
mpoke 352a426
add expected order to TestGetAllConsumerAddrsToPrune
mpoke eca0844
Add test for GetSlashAndTrailingData (#623)
shaspitz 78bcaae
use InitTimeoutTimestamp instead of two slices
mpoke 253576a
Fix: Change keys for storing proposals (#620)
mpoke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't really review this logic without more context or comments. It looks like nothing changed besides
IterateOverUnbondingOpIndex
becomingGetAllUnbondingOpIndexes
?