Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Conversation

@Demi-Marie
Copy link
Contributor

Move BABE verification into its own module.

This will fix #3642 once it is completed, which it isn’t.

@Demi-Marie Demi-Marie added the A3-in_progress Pull request is in progress. No review needed at this stage. label Sep 20, 2019
@rphmeier
Copy link
Contributor

Note that there is a big incoming refactor in #3583 which may conflict

@Demi-Marie Demi-Marie marked this pull request as ready for review September 24, 2019 16:54
@Demi-Marie Demi-Marie added A0-please_review Pull request needs code review. and removed A3-in_progress Pull request is in progress. No review needed at this stage. labels Sep 24, 2019
@rphmeier rphmeier changed the title BABE refactoring BABE refactoring: split out verification Sep 30, 2019
}

#[allow(deprecated)]
pub(super) fn make_transcript(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing doc-comment

Copy link
Contributor

@rphmeier rphmeier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand what the conceptual boundary between slots and authorship is, given that everything within the slots module is about claiming slots, which is inherently tied to authorship.

Generally, I'm a proponent of keeping modules on the larger side and only aiming to break them up at around 1KLoC - so I suggest merging the slots and authorship modules into authorship, with potential future refactorings to reorganize once that module gets too large.

Other than that and the other nits, looks fine to me.

Copy link
Contributor

@rphmeier rphmeier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would also like to see BabeVerifier::verify and BabeBlockImport::import_block mostly extracted (and hopefully split into more unit-testable components).

i wouldn't mind that being a follow-on PR (although I would expect it to follow this one shortly) because it is a bit more logic-intensive.

@rphmeier rphmeier added A5-grumble and removed A0-please_review Pull request needs code review. labels Sep 30, 2019
@rphmeier rphmeier merged commit 7010ec7 into master Oct 2, 2019
@rphmeier rphmeier deleted the dm-split-babe-verification branch October 2, 2019 13:51
@rphmeier rphmeier added A0-please_review Pull request needs code review. and removed A5-grumble labels Oct 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A0-please_review Pull request needs code review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Split BABE verification and authorship code into own modules

3 participants