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

[Stake] Validate lockup #4632

Merged
merged 3 commits into from Sep 29, 2022
Merged

[Stake] Validate lockup #4632

merged 3 commits into from Sep 29, 2022

Conversation

movekevin
Copy link
Contributor

@movekevin movekevin commented Sep 29, 2022

Description

Ensure that the new lockup period (set as now + fixed recurring lockup) > old lockup. There could be an edge case when the on chain governance reduces recurring lockup, which allows increase_lockup to overrides the old lockup with a new shorter one.

Test Plan

Added unit test


This change is Reviewable

Copy link
Contributor

@davidiw davidiw left a comment

Choose a reason for hiding this comment

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

pretty boring, let's try to skip gatekeepers

@davidiw
Copy link
Contributor

davidiw commented Sep 29, 2022

my fear was that we'd hit some display issue :(

@movekevin
Copy link
Contributor Author

my fear was that we'd hit some display issue :(

This case only happens if governance ever shortens the recurring lockup period.

@movekevin movekevin enabled auto-merge (squash) September 29, 2022 16:14
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

✅ Forge suite land_blocking success on bedfa8d555f1245010d7c2c703a6fbdeb24f1149

performance benchmark with full nodes : 7253 TPS, 5461 ms latency, 11400 ms p99 latency,(!) expired 540 out of 3097760 txns
Test Ok

@github-actions
Copy link
Contributor

✅ Forge suite compat success on 843b204dce971d98449b82624f4f684c7a18b991 ==> bedfa8d555f1245010d7c2c703a6fbdeb24f1149

Compatibility test results for 843b204dce971d98449b82624f4f684c7a18b991 ==> bedfa8d555f1245010d7c2c703a6fbdeb24f1149 (PR)
1. Check liveness of validators at old version: 843b204dce971d98449b82624f4f684c7a18b991
compatibility::simple-validator-upgrade::liveness-check : 7958 TPS, 4757 ms latency, 6900 ms p99 latency,no expired txns
2. Upgrading first Validator to new version: bedfa8d555f1245010d7c2c703a6fbdeb24f1149
compatibility::simple-validator-upgrade::single-validator-upgrade : 5494 TPS, 6969 ms latency, 9400 ms p99 latency,no expired txns
3. Upgrading rest of first batch to new version: bedfa8d555f1245010d7c2c703a6fbdeb24f1149
compatibility::simple-validator-upgrade::half-validator-upgrade : 5305 TPS, 7343 ms latency, 9400 ms p99 latency,no expired txns
4. upgrading second batch to new version: bedfa8d555f1245010d7c2c703a6fbdeb24f1149
compatibility::simple-validator-upgrade::rest-validator-upgrade : 7626 TPS, 4796 ms latency, 8600 ms p99 latency,no expired txns
5. check swarm health
Compatibility test for 843b204dce971d98449b82624f4f684c7a18b991 ==> bedfa8d555f1245010d7c2c703a6fbdeb24f1149 passed
Test Ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants