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.)
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.)