This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Collective: Benchmark with greater
MaxProposals
#12454Collective: Benchmark with greater
MaxProposals
#12454Changes from 12 commits
a8bc2cc
8ce5fa2
ddefb59
d3e2579
0830040
08fcd43
a887818
375f999
93586a2
167efdb
80e9937
bb65d9a
61deeac
79416e6
f57994a
1f5208d
1769703
bd89f9b
6e2de72
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why these changes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The goal of this PR was to be able to set the
MaxProposal
to a value higher than255
. In the benchmarks, we use theremark
function to represent a proposal. Because we cannot have two identical proposals what we did until now is make the remark data be a variable number repeated a number of times(b
times). This comes with a limit since the remark data is aVec<u8>
so it cannot accept a number greater than255
. To fix this we use little-endian to encode these greater numbers. So to represent a number greater than255
we need a vector that is longer than 1. That is why we updated the range ofb
so that it starts from 2. @bkchrI hope the explanation makes sense :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then it should be changed to
4
, becauseMaxMembers
is anu32
which would lead to duplicate proposals when using more than 65k max members. You should also leave some comment on why we start at 4.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#12454 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm okay 🙈
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not happy with this, but okay :P