Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions prdoc/pr_9731.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
title: simulate `rank_to_votes` conversion in vote benchmark

doc:
- audience: Runtime Dev
description: |
Fixes benchmarking failures for the vote extrinsic in pallet-ranked-collective by properly
simulating the `rank_to_votes` conversion process. Previously used hardcoded vote values
which caused assertion failures when using custom VoteWeight converters (e.g., in
[Ambassador Collective configuration](https://github.com/polkadot-fellows/runtimes/pull/736)). The fix calculates vote weight based on member's
actual rank and minimum required rank for the class.

crates:
- name: pallet-ranked-collective
bump: patch
Loading