-
Notifications
You must be signed in to change notification settings - Fork 197
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
Filter auction nodes list #3822
Merged
iulianpascalau
merged 26 commits into
feat/liquid-staking
from
EN-11662-filter-new-nodes
Mar 9, 2022
Merged
Changes from 25 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
a0cdfc5
FEAT: Add first ugly version
mariusmihaic 200f17d
Merge branch 'EN-11661-staking-v4-init' into EN-11662-filter-new-nodes
mariusmihaic 60e4e3a
FEAT: Add temporary test
mariusmihaic bd9d101
FEAT: Change ProcessSystemSmartContract func interface to accept rand
mariusmihaic a838a7f
FEAT: Sort by pubKey XOR rand if multiple nodes have same top up per …
mariusmihaic ef30472
FIX: Top up per node in tests
mariusmihaic caa682d
FEAT: Display auction list, refactor interface + tests
mariusmihaic 40ff5a7
FIX: Refactor tests
mariusmihaic 02160ad
FIX: Refactor code pt. 1
mariusmihaic 5ae3d73
FIX: Refactor code pt. 2
mariusmihaic 2a2dc29
FEAT: Add tests for error paths
mariusmihaic 473896e
FIX: Small refactor
mariusmihaic e51f952
FEAT: Add flag in toml file
mariusmihaic 638a23b
Merge branch 'EN-11661-staking-v4-init' into EN-11662-filter-new-nodes
mariusmihaic a8fef77
Merge remote-tracking branch 'origin/EN-11661-staking-v4-init' into E…
mariusmihaic 27aa5f8
Merge branch 'EN-11661-staking-v4-init' into EN-11662-filter-new-nodes
mariusmihaic 69bc7c5
FIX: Review findings
mariusmihaic 53befc7
Merge branch 'feat/liquid-staking' into EN-11662-filter-new-nodes
mariusmihaic 23675b0
FIX: Review findings
mariusmihaic 9639aa5
FIX: Review findings pt. 2
mariusmihaic 196ffdb
Merge branch 'feat/liquid-staking' into EN-11662-filter-new-nodes
mariusmihaic 42b0528
FIX: One review finding
mariusmihaic 3df6cfb
FIX: Integration test
mariusmihaic c3abbdb
FIX: Broken tests
mariusmihaic 47c7712
FEAT: Move selected nodes from AuctionList to SelectedFromAuctionList
mariusmihaic 20535f3
FIX: Review findings
mariusmihaic File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
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
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.
so this should always be StakingV4InitEnableEpoch + 1? What happens if we wrongly configure this?
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.
Theoretically, code should not panic or anything. If EnableEpoch < InitEpoch => auction list will be empty => no sorting/selection will be made.
Logic-wise, if they are inverted it shouldn't cause any bugs for NOW. I'm not sure how the implementation on
nodes coordinator
side will look like to give an educated opinion. Depending how it will be designed, it might cause some bugs