Conversation
Implemented an `on_idle` hook for automatic rebagging of accounts, enabling incremental correction of account positions within the bags-list during the idle phase of block execution. Introduced new storages and configurable constants to support this functionality, along with improvements in logging and internal helpers.
Make it work on kitchensink-runtime
…bag-within-on-idle
Refactored rebagging logic into `rebag_internal` to simplify code and improve readability. Introduced the `AutoRebagPerBlock` type, including its integration into relevant runtimes.
…-idle' of https://github.com/paritytech/polkadot-sdk into 8403-pallet-bags-list-add-optional-auto-rebag-within-on-idle
Clarify the behavior of the `NextNodeAutoRebagging` pointer to indicate the next node for rebagging rather than the last auto-rebagged node. Adjust comments and logs for improved accuracy and readability, ensuring consistent and precise descriptions.
|
/cmd --help |
Command help: |
|
/cmd fmt |
|
/cmd prdoc --audience runtime_dev --bump minor |
…time_dev --bump minor'
Make tests work
Improve auto-rebagging with error tracking and logging. Added detailed logging for weight limits, successful and failed rebags, and unexpected cursor states. Enhanced robustness by handling pallet lock states and iterator failures gracefully.
|
/cmd fmt |
Ank4n
left a comment
There was a problem hiding this comment.
Looking great — I just want to do one more pass before approving.
…bag-within-on-idle
kianenigma
left a comment
There was a problem hiding this comment.
Looks very good so far 👍 mainly missing some unit tests
Removed the requirement to pass the score provider function as a parameter to `rebag_internal`.
Use `defensive!` macro for logging in auto-rebag errors.
|
/cmd bench --pallet pallet_bags_list |
|
Command "bench --pallet pallet_bags_list" has started 🚀 See logs here |
|
All GitHub workflows were cancelled due to failure one of the required jobs. |
|
Command "bench --pallet pallet_bags_list" has finished ✅ See logs here DetailsSubweight results:
Command output:✅ Successful benchmarks of runtimes/pallets: |
Implemented an `on_idle` hook for automatic rebagging of accounts, enabling incremental correction of account positions within the bags-list during the idle phase of block execution. Introduced new storages and configurable constants to support this functionality, along with improvements in logging and internal helpers. --------- Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Ankan <10196091+Ank4n@users.noreply.github.com> Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
* master: (91 commits) Add extra information to the harmless error logs during validate_transaction (#9047) `sp-tracing`: Remove `test-utils` feature (#9063) add try-state check for staking roles -- staker cannot be nominator a… (#9034) net/discovery: File persistence for `AddrCache` (#8839) dispute-coordinator: handle race with offchain disabling (#9050) Align parameters for `EventEmitter::emit_sent_event` (#9057) Fetch parent block `api_version` (#9059) [XCM Precompile] Rename functions and improve docs in the Solidity interface (#9023) Cleanup and improvements for `ControlledValidatorIndices` (#8896) reenable 0001-parachains-pvf (#9046) Add optional auto-rebag within on-idle (#8684) Fix flaxy 0003-block-building-warp-sync test - one more approach (#8974) [Staking] [AHM] Fixes insufficient slashing of nominators (and some other small issues). (#8937) chore: Bump bounded-collections dep (#9004) XCMP and DMP improvements (#8860) EPMB/unsigned: fixed multi-page winner computation (#8987) Always send full parent header, not only hash, part of collation response (#8939) revive: Precompiles should return dummy code when queried (#9001) Fix confusing log messages in network protocol behaviour (#8819) Fix pallet_migrations benchmark when FailedMigrationHandler emits events (#8694) ...
This brings in `unstable2507` Polkadot SDK, and integrates new features. Integrated breaking changes to be verified by the original authors: - [ ] paritytech/polkadot-sdk#7953 @kianenigma @Ank4n acatangiu#13 - [x] paritytech/polkadot-sdk#8684 @nkpar - [x] paritytech/polkadot-sdk#8693 @tiagobndr @franciscoaguirre - [x] paritytech/polkadot-sdk#9137 @franciscoaguirre fixes #837 --------- Co-authored-by: Branislav Kontur <bkontur@gmail.com> Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> Co-authored-by: kianenigma <kian@parity.io> Co-authored-by: Christian Langenbacher <clangenb+gh@protonmail.ch>
Implemented an `on_idle` hook for automatic rebagging of accounts, enabling incremental correction of account positions within the bags-list during the idle phase of block execution. Introduced new storages and configurable constants to support this functionality, along with improvements in logging and internal helpers. --------- Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Ankan <10196091+Ank4n@users.noreply.github.com> Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
Implemented an
on_idlehook for automatic rebagging of accounts, enabling incremental correction of account positions within the bags-list during the idle phase of block execution. Introduced new storages and configurable constants to support this functionality, along with improvements in logging and internal helpers.