-
Notifications
You must be signed in to change notification settings - Fork 131
refactor(l1): change p2p_enabled flag to p2p_disabled flag #5228
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
Conversation
Lines of code reportTotal lines added: Detailed view |
| authrpc_addr: "localhost".into(), | ||
| authrpc_port: "8551".into(), | ||
| authrpc_jwtsecret: "jwt.hex".into(), | ||
| p2p_enabled: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I opted for implementing the opposite behaviour to this and have p2p_disable be set with the default value false, but isn't it that p2p isn't necessary for L2? Shouldn't I set p2p_disabled: true?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm pretty sure L2 does require P2P, since the P2P module has an RLPX module related to L2 P2P networking
| authrpc_addr: "localhost".into(), | ||
| authrpc_port: "8551".into(), | ||
| authrpc_jwtsecret: "jwt.hex".into(), | ||
| p2p_enabled: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm pretty sure L2 does require P2P, since the P2P module has an RLPX module related to L2 P2P networking
**Motivation** `p2p_enabled` is a no op since it's the default configuration, so there's no need for it. **Description** This pr replaces the `p2p_enabled` flag with a `p2p_disabled` flag in case someone wants to disable p2p. Closes #4979
Motivation
p2p_enabledis a no op since it's the default configuration, so there's no need for it.Description
This pr replaces the
p2p_enabledflag with ap2p_disabledflag in case someone wants to disable p2p.Closes #4979