We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
rank_to_votes
pallet-ranked-collective
1 parent d9610ff commit 6c86c52Copy full SHA for 6c86c52
prdoc/pr_9731.prdoc
@@ -0,0 +1,14 @@
1
+title: simulate `rank_to_votes` conversion in vote benchmark
2
+
3
+doc:
4
+- audience: Runtime Dev
5
+ description: |
6
+ Fixes benchmarking failures for the vote extrinsic in pallet-ranked-collective by properly
7
+ simulating the `rank_to_votes` conversion process. Previously used hardcoded vote values
8
+ which caused assertion failures when using custom VoteWeight converters (e.g., in
9
+ [Ambassador Collective configuration](https://github.com/polkadot-fellows/runtimes/pull/736)). The fix calculates vote weight based on member's
10
+ actual rank and minimum required rank for the class.
11
12
+crates:
13
+- name: pallet-ranked-collective
14
+ bump: patch
0 commit comments