-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Multi-Block Election part 0: preparation and some cleanup. #9442
Conversation
@kianenigma sounds like something we can extract to its own PR and get in now? |
Yeah, sounds good. |
primitives/npos-elections/solution-type/src/from_assignment_helpers.rs
Outdated
Show resolved
Hide resolved
|
this will allow to submit the solution in multiple part, thus we are no longer constraint with the block length limit. |
Co-authored-by: Guillaume Thiolliere <[email protected]>
Co-authored-by: Guillaume Thiolliere <[email protected]>
shawntabrizi
left a 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.
without digging to deep into the macro, other changes and renaming seems sensible.
Should not use my review if there are still open question in the macro from others
| mod codec; | ||
| mod from_assignment_helpers; | ||
| mod index_assignment; | ||
| mod single_page; |
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 feel like the module name doesn't make much sense anymore.
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.
soon I will introduce paged into the jargon of this and other crates, I think it is okay.
…ti-block-snapshot-pt1-paged-solution-macro
|
bot merge |
|
Waiting for commit status. |
…ti-block-snapshot-pt1-paged-solution-macro
|
bot merge |
|
Waiting for commit status. |
* Partially applied * Everything builds, need to implement compact encoding as well. * Fix some tests, add a ui test as well. * Fix everything and everything. * small nits * a bunch more rename * more reorg * more reorg * last nit of self-review * Seemingly fixed the build now * Fix build * make it work again * Update primitives/npos-elections/solution-type/src/lib.rs Co-authored-by: Guillaume Thiolliere <[email protected]> * Update primitives/npos-elections/solution-type/src/lib.rs Co-authored-by: Guillaume Thiolliere <[email protected]> * nits * factor out double type * fix try-build Co-authored-by: Guillaume Thiolliere <[email protected]>
…9767) * Partially applied * Everything builds, need to implement compact encoding as well. * Fix some tests, add a ui test as well. * Fix everything and everything. * Update primitives/npos-elections/solution-type/src/lib.rs * factor out double type * fix try-build Co-authored-by: Guillaume Thiolliere <[email protected]> Co-authored-by: Kian Paimani <[email protected]>
This is the first step towards multi-block election.
As first step, I did a lot of renaming that I have been meaning to do for a while. This is to prevent calling the output of
create_solution_typecompact, since it is confused withcodec::Compact. Other than that, I repotted some items insp-npos-elections. There are no logical changes in this PR.The only other change is that I factored out
votes2and treat it like all other fields, instead of beingvec![(voter , (t1, p1), t2), .. ]it is nowvec![(voter , [(t1, p1)], t2), .. ].polkadot companion: paritytech/polkadot#3594