Skip to content

refactor(validator): move the validator itself to its own crate#3343

Open
t00ts wants to merge 7 commits intomainfrom
t00ts/decouple-validator
Open

refactor(validator): move the validator itself to its own crate#3343
t00ts wants to merge 7 commits intomainfrom
t00ts/decouple-validator

Conversation

@t00ts
Copy link
Copy Markdown
Contributor

@t00ts t00ts commented Apr 15, 2026

Closes #3333

@t00ts t00ts force-pushed the t00ts/decouple-validator branch from 2ffd25f to 8ac8250 Compare April 15, 2026 10:48
@t00ts t00ts marked this pull request as ready for review April 15, 2026 13:20
@t00ts t00ts requested a review from a team as a code owner April 15, 2026 13:20
Copy link
Copy Markdown
Contributor

@CHr15F0x CHr15F0x left a comment

Choose a reason for hiding this comment

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

:shipit:

/// Used only for testing and dummy proposal creation.
#[cfg(any(test, feature = "p2p"))]
pub(crate) fn skip_validation(
pub fn skip_validation(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I used to hide such code behind some test-utils features, to guarantee they don't end up being used in prod, but no hard feelings about that, if you already use different conventions

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It's a good point, I agree.

Dug deeper into this and the validator decoupling has exposed the current messy nature of our p2p flag, which I'm looking into right now and might eventually roll this back. But for now here it is 1af075c.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(validator): move the validator to it's own crate

3 participants