You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Chralt98 opened this issue
Oct 6, 2022
· 0 comments
· Fixed by #12454
Labels
I5-testsTests need fixing, improving or augmenting.Z1-easyCan be fixed primarily by duplicating and adapting code by an intermediate coderZ6-mentorAn easy task where a mentor is available. Please indicate in the issue who the mentor could be.
the current benchmark of pallet_collective fails on propose_proposed with DuplicateProposal, when the MaxProposals number is set greater than u8::MAX. This happens because the proposal hash inside the benchmark is generated based on the MaxProposals number and produces duplicated (non-unique) hashes after the number of 255 is reached.
ggwpez
added
I5-tests
Tests need fixing, improving or augmenting.
Z6-mentor
An easy task where a mentor is available. Please indicate in the issue who the mentor could be.
Z1-easy
Can be fixed primarily by duplicating and adapting code by an intermediate coder
and removed
J2-unconfirmed
Issue might be valid, but it’s not yet known.
labels
Oct 6, 2022
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
I5-testsTests need fixing, improving or augmenting.Z1-easyCan be fixed primarily by duplicating and adapting code by an intermediate coderZ6-mentorAn easy task where a mentor is available. Please indicate in the issue who the mentor could be.
Hey valuable Substrate maintainers,
the current benchmark of
pallet_collective
fails onpropose_proposed
withDuplicateProposal
, when theMaxProposals
number is set greater thanu8::MAX
. This happens because the proposal hash inside the benchmark is generated based on theMaxProposals
number and produces duplicated (non-unique) hashes after the number of255
is reached.substrate/frame/collective/src/benchmarking.rs
Line 199 in 174735e
The ProposalIndex is not
u8
to allow more than 255 proposals.The text was updated successfully, but these errors were encountered: