eqlabs / pathfinder

A Starknet full node written in Rust
https://eqlabs.github.io/pathfinder/
Other
619 stars 227 forks source link

feat(pathfinder): enable P2P sync client #2046

Closed kkovaacs closed 3 months ago

kkovaacs commented 3 months ago

This change makes most of our code implementing P2P compile even without the "p2p" feature enabled and starts the P2P sync client instead of gateway sync if "p2p" is enabled unless the p2p.proxy CLI argument is enabled.

The actual enablement of P2P and related config options are still gated by the "p2p" feature so our release builds will still not contain any P2P functionality -- but conditional compilation is done only in the "pathfinder" crate.

(Note that the P2P sync client is not really functional yet without further fixes.)