Skip to content

refactor(validator): make pathfinder-validator an optional dependency#3344

Merged
t00ts merged 8 commits intomainfrom
t00ts/refactor-p2p-consensus
Apr 17, 2026
Merged

refactor(validator): make pathfinder-validator an optional dependency#3344
t00ts merged 8 commits intomainfrom
t00ts/refactor-p2p-consensus

Conversation

@t00ts
Copy link
Copy Markdown
Contributor

@t00ts t00ts commented Apr 16, 2026

This comment brought me down the rabbit hole of our p2p flag in pathfinder and how we had structured our code around it.

The consensus module wasn't being guarded behind this flag, and it only makes sense that it is (consensus is just relevant in p2p context). So I propose we change this. I only had to move ConsensusChannels out of the consensus module (since sync code needs it, regardless of p2p).

Also gated devnet - @CHr15F0x correct me if this should not be the case, but I think it's just p2p testing infra.

So pathfinder-validator is now optional, just as pathfinder-consensus is.

Also, back to the initial comment, skip_validation no longer needs its own feature guard, as the crate itself acts as the gate.

@t00ts t00ts force-pushed the t00ts/refactor-p2p-consensus branch 2 times, most recently from 1ecf840 to 9263abe Compare April 16, 2026 09:29
@t00ts t00ts marked this pull request as ready for review April 16, 2026 10:08
@t00ts t00ts requested a review from a team as a code owner April 16, 2026 10:08
@CHr15F0x
Copy link
Copy Markdown
Contributor

@t00ts wrt devnet - you're right.

Comment thread crates/pathfinder/src/bin/pathfinder/main.rs
@t00ts t00ts force-pushed the t00ts/refactor-p2p-consensus branch from 9263abe to 0665920 Compare April 17, 2026 05:39
@t00ts t00ts merged commit 238a53f into main Apr 17, 2026
11 checks passed
@t00ts t00ts deleted the t00ts/refactor-p2p-consensus branch April 17, 2026 06:59
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.

2 participants