-
Notifications
You must be signed in to change notification settings - Fork 237
Staking jobs with DRAND sorting #1919
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
base: devnet-ready
Are you sure you want to change the base?
Conversation
Hey @shamil-gadelshin, do we want to add logic |
Yes, we do. Thanks for the advice. |
df9ae51
The last update contains EVM versions of staking extrinsics (ensured by custom EVM origin). |
The last update contains the missing |
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.
precompile and custom origin looks good.
Perfect. I'll update my PR tomorrow. |
We should get the results of #1955 first |
Description
This PR reintroduces staking jobs for all staking operations. All staking operations will be delayed until the end of the block or the next DRAND pulse. The jobs within each type (like add_stake jobs) will be sorted using the last DRAND pulse randomness.
Affected extrinsics:
Comment: swap_stake, move_stake and transfer_stake will be likely modified using
transactional::with_transaction
as suggested by @gztensorType of Change
Checklist
cargo fmt
andcargo clippy
to ensure my code is formatted and linted correctly