Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: detect p2p #102

Merged
merged 1 commit into from
Nov 10, 2023
Merged

feat: detect p2p #102

merged 1 commit into from
Nov 10, 2023

Conversation

wolf31o2
Copy link
Member

Detect if the Cardano Node has P2P enabled.

  • Assume P2P is enabled, by default
  • Check if we're on mainnet
  • If on mainnet, look for Cardano Node's command line
  • if "p2p" is in the command line, assume we're P2P
  • Grab the Cardano Node's config file path from the command line
  • Read the EnableP2P key from the config file

Fixes #50

Signed-off-by: Chris Gianelloni <[email protected]>
@wolf31o2 wolf31o2 merged commit 0b1748a into main Nov 10, 2023
8 checks passed
@wolf31o2 wolf31o2 deleted the feat/detect-p2p branch November 10, 2023 00:30
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.

Detect P2P
2 participants