Staking jobs with DRAND sorting#1919
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 |
open-junius
left a comment
There was a problem hiding this comment.
precompile and custom origin looks good.
Perfect. I'll update my PR tomorrow. |
We should get the results of #1955 first |
|
Staking jobs approach was abandoned. |
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_transactionas suggested by @gztensorType of Change
Checklist
cargo fmtandcargo clippyto ensure my code is formatted and linted correctly