-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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. |
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com>
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 <gui.thiolliere@gmail.com> * Update primitives/npos-elections/solution-type/src/lib.rs Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com> * nits * factor out double type * fix try-build Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com>
…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 <gui.thiolliere@gmail.com> Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
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_type
compact
, 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
votes2
and 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