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(p2p): add p2p advertising option #862

Merged
merged 11 commits into from
May 16, 2024
Merged

Conversation

srene
Copy link
Contributor

@srene srene commented May 14, 2024

PR Standards

Opening a pull request should be able to meet the following requirements


Close #

<-- Briefly describe the content of this pull request -->

For Author:

  • Targeted PR against correct branch
  • included the correct type prefix in the PR title
  • Linked to Github issue with discussion and accepted design
  • Targets only one github issue
  • Wrote unit and integration tests
  • All CI checks have passed
  • Added relevant godoc comments

For Reviewer:

  • confirmed the correct type prefix in the PR title
  • Reviewers assigned
  • confirmed all author checklist items have been addressed

After reviewer approval:

  • In case targets main branch, PR should be squashed and merged.
  • In case PR targets a release branch, PR should be rebased.

@srene srene requested a review from a team as a code owner May 14, 2024 14:34
@srene srene self-assigned this May 14, 2024
@srene srene linked an issue May 14, 2024 that may be closed by this pull request
@srene srene linked an issue May 14, 2024 that may be closed by this pull request
@srene srene changed the base branch from main to srene/798-command-p2p-status May 14, 2024 14:38
@srene srene changed the base branch from srene/798-command-p2p-status to srene/797-change-p2p-options May 14, 2024 14:39
@srene srene changed the title feat(p2p): add p2p option to disable advertise the node to the network feat(p2p): add p2p advertising option May 14, 2024
config/p2p.go Outdated Show resolved Hide resolved
@srene srene requested a review from mtsitrin May 15, 2024 07:23
mtsitrin
mtsitrin previously approved these changes May 15, 2024
@@ -42,6 +42,7 @@ func DefaultConfig(home, chainId string) *NodeConfig {
BootstrapTime: 30 * time.Second,
ListenAddress: DefaultListenAddress,
BootstrapNodes: "",
Advertising: true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would prefer Advertise or AdvertisingEnabled as a name, ditto for p2p.go

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@srene srene requested review from danwt and mtsitrin May 15, 2024 19:26
@srene srene force-pushed the srene/797-change-p2p-options branch from 23a92c0 to 3603b27 Compare May 15, 2024 19:50
danwt
danwt previously approved these changes May 15, 2024
Copy link
Contributor

@danwt danwt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gj!

Base automatically changed from srene/797-change-p2p-options to main May 16, 2024 06:48
@mtsitrin mtsitrin dismissed stale reviews from danwt and themself May 16, 2024 06:48

The base branch was changed.

@mtsitrin mtsitrin merged commit 977019f into main May 16, 2024
6 checks passed
@mtsitrin mtsitrin deleted the srene/812-p2p-advertise-option branch May 16, 2024 08:10
omritoptix pushed a commit that referenced this pull request May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sequencer should not be advertised in p2p network
3 participants