-
Notifications
You must be signed in to change notification settings - Fork 1k
bags-list: implement pending rebag #9725
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
Conversation
- Add PendingRebag storage to queue accounts that fail insertion during lock. - Modify on_idle to process pending accounts with priority before regular accounts. - Add cleanup logic for non-staking pending accounts.
/cmd prdoc --audience runtime_dev --bump patch |
…time_dev --bump patch'
/cmd bench --pallet pallet_bags_list --runtime asset-hub-westend |
/cmd bench --pallet pallet_bags_list --runtime dev |
Command "bench --pallet pallet_bags_list --runtime asset-hub-westend" has started 🚀 See logs here |
Command "bench --pallet pallet_bags_list --runtime dev" has started 🚀 See logs here |
…t_bags_list --runtime asset-hub-westend'
Command "bench --pallet pallet_bags_list --runtime asset-hub-westend" has finished ✅ See logs here Subweight results:
Command output:✅ Successful benchmarks of runtimes/pallets: |
…t_bags_list --runtime dev'
Command "bench --pallet pallet_bags_list --runtime dev" has finished ✅ See logs here Subweight results:
Command output:✅ Successful benchmarks of runtimes/pallets: |
Co-authored-by: Kian Paimani <[email protected]>
Co-authored-by: Kian Paimani <[email protected]>
Co-authored-by: Kian Paimani <[email protected]>
All GitHub workflows were cancelled due to failure one of the required jobs. |
Fix the issue where registering a nominator or validator while the bags list is locked would completely ignore the account, making it unreachable for on_idle rebagging. Changes: - Add PendingRebag storage to queue accounts that fail insertion during lock. - Modify on_idle to process pending accounts with priority before regular accounts. - Add cleanup logic for non-staking pending accounts. Related issue: paritytech-secops/srlabs_findings#567 --------- Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Kian Paimani <[email protected]>
Created backport PR for
Please cherry-pick the changes locally and resolve any conflicts. git fetch origin backport-9725-to-stable2509
git worktree add --checkout .worktree/backport-9725-to-stable2509 backport-9725-to-stable2509
cd .worktree/backport-9725-to-stable2509
git reset --hard HEAD^
git cherry-pick -x 5c63e5e3c9b96e4177572b00672942fdbc65433e
git push --force-with-lease |
Fix the issue where registering a nominator or validator while the bags list is locked would completely ignore the account, making it unreachable for on_idle rebagging.
Changes:
Related issue: https://github.com/paritytech-secops/srlabs_findings/issues/567