-
Notifications
You must be signed in to change notification settings - Fork 721
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
Continuous Staking 2 - Dropping Pending Validators #1387
Conversation
// Add allows inserting a transaction in mempool. | ||
// Timestamp is the chain tip time. It's needed to | ||
// handle hard forks | ||
Add(tx *txs.Tx, timestamp time.Time) error |
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.
Continuous staking fork will change the way txs are stored in mempool. Once activated, there won't be need anymore to distinguish stakers txs and drop those with start time too far ahead in the future.
Currently the easier way to let mempool handle the change in tx classification is to pass chain time at the time Add is called.
Co-authored-by: Dhruba Basu <[email protected]> Co-authored-by: Stephen Buttolph <[email protected]>
Co-authored-by: Stephen Buttolph <[email protected]>
Signed-off-by: Dan Laine <[email protected]> Signed-off-by: Stephen Buttolph <[email protected]> Co-authored-by: Dan Laine <[email protected]> Co-authored-by: Stephen Buttolph <[email protected]>
Co-authored-by: Stephen Buttolph <[email protected]>
Co-authored-by: Stephen Buttolph <[email protected]> Co-authored-by: aaronbuchwald <[email protected]>
This PR has become stale because it has been open for 30 days with no activity. Adding the |
Why this should be merged
No more pending validators. To add a validator we should specify just its duration, not start/end time anymore. Staking will start as soon as validatorTx is accepted.
How this works
First off, this PR is based off #1530
Its content:
How this was tested
CI + extra UTs for now. Missing fork enabling in testnet and some more e2e tests.