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

P2P: listen endpoint option to specify no blocks #1101

Open
heifner opened this issue Jan 15, 2025 · 0 comments · May be fixed by #1115
Open

P2P: listen endpoint option to specify no blocks #1101

heifner opened this issue Jan 15, 2025 · 0 comments · May be fixed by #1115
Assignees
Labels
enhancement New feature or request 👍 lgtm OCI Work exclusive to OCI team

Comments

@heifner
Copy link
Member

heifner commented Jan 15, 2025

https://hackmd.io/-766AO7CTjCb99TOAt_jSQ

Add option to p2p-listen-endpoint (:trx) which tells all connections on that endpoint to not relay blocks.
This would be useful for public relay nodes so blocks are not sent to it.

Currently, blocks are sent to public relay nodes (all peers) after a block header has been validated and the block has not yet been received from the node.

A test I ran locally with 17 public P2P peers, echoed back to 5 on average for every block. It is highly doubtful those peers needed those blocks.

@enf-ci-bot enf-ci-bot moved this to Todo in Team Backlog Jan 15, 2025
@heifner heifner added the enhancement New feature or request label Jan 15, 2025
@bhazzard bhazzard added 👍 lgtm and removed triage labels Jan 15, 2025
@heifner heifner self-assigned this Jan 20, 2025
@heifner heifner added the OCI Work exclusive to OCI team label Jan 20, 2025
@heifner heifner moved this from Todo to In Progress in Team Backlog Jan 20, 2025
@heifner heifner added this to the Spring v1.1.0-rc1 milestone Jan 20, 2025
heifner added a commit that referenced this issue Jan 22, 2025
heifner added a commit that referenced this issue Jan 22, 2025
heifner added a commit that referenced this issue Jan 22, 2025
…nnection type to avoid the node adopting the mode
heifner added a commit that referenced this issue Jan 22, 2025
…wise type can be set so that trxs are not sent to peer
@heifner heifner linked a pull request Jan 23, 2025 that will close this issue
@BenjaminGormanPMP BenjaminGormanPMP moved this from In Progress to Awaiting Review in Team Backlog Jan 23, 2025
@heifner heifner linked a pull request Jan 24, 2025 that will close this issue
heifner added a commit that referenced this issue Jan 25, 2025
…te determination if a block request is needed. Also include in the block request_message the peer head. The peer head allows the node to determine if on a fork and send from LIB instead. Also create block_on_fork function to remove duplicate code.
heifner added a commit that referenced this issue Jan 25, 2025
…te determination if a block request is needed. Also include in the block request_message the peer head. The peer head allows the node to determine if on a fork and send from LIB instead. Also create block_on_fork function to remove duplicate code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request 👍 lgtm OCI Work exclusive to OCI team
Projects
Status: Awaiting Review
Development

Successfully merging a pull request may close this issue.

3 participants