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

Remove TARGET_NUMBER_OF_PEERS config variable #3852

Closed
wants to merge 2 commits into from

Conversation

dapplion
Copy link
Member

As implementor TARGET_NUMBER_OF_PEERS has been an awkward config variable that does not align with how the client's peer count is managed and controlled by the user. I understand its strong relevance in the context of DAS but it should not translate into it becoming a network config variable IMO.

The spec can recommend a safe peer count with words on the p2p section, which is what this PR switches to. Client devs are free to implement a warning log if users select a peer count that is less than this safe value.

A node runs a background peer discovery process, maintaining at least `TARGET_NUMBER_OF_PEERS` of various custody distributions (both `custody_size` and column assignments). The combination of advertised `custody_size` size and public node-id make this readily and publicly accessible.

`TARGET_NUMBER_OF_PEERS` should be tuned upward in the event of failed sampling.
A node runs a background peer discovery process, maintaining at least 70 peers of various custody distributions (both `custody_size` and column assignments). The combination of advertised `custody_size` size and public node-id make this readily and publicly accessible. A node may increase its peer count in the event of failed sampling.
Copy link
Member

Choose a reason for hiding this comment

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

I think there is really no reason to put the number at all. How about just specifying that you should have enough peers to cover all the columns?

Copy link
Member Author

@dapplion dapplion Jul 25, 2024

Choose a reason for hiding this comment

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

Okay to me to not recommend a number at all, but would like to get the thumbs up of researchers before. The purpose of this PR is only to remove the config variable, not the number itself.

Copy link
Member

Choose a reason for hiding this comment

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

I think removing it makes sense. We should wait for @fradamt to comment.

Copy link
Contributor

Choose a reason for hiding this comment

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

Removing the config variable sounds good. As for the rest, I would maybe lean towards having a paragraph somewhere which gives some indications on how to think about the number of peers in relation to sampling, rather than giving a specific number. For example in the spirit of this discussion

Copy link
Member

Choose a reason for hiding this comment

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

However, I think it's okay to make another PR to remove this number and rephrase this paragraph. We can merge it as it is.

@jtraglia jtraglia added the EIP-7594 PeerDAS label Jul 24, 2024
@hwwhww
Copy link
Contributor

hwwhww commented Aug 20, 2024

closing in favor of #3870

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EIP-7594 PeerDAS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants