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

Opt perf p2p send tx directly #2

Conversation

andyzhang2023
Copy link

Description

We used to broadcast a transaction body directly to Sqrt(n) peers, and announce its hash to others. But if static.peers is configured, we can broadcast transactions body directly to them but not announce hashes because:

  1. static peers mean trusted peers.
  2. send transaction bodies directly means lower latency and higher throughput.

When configuring static.peers, we should upgrade those static.peers to the latest version to support heavy traffic first.

@bnoieh bnoieh merged commit 186ecfa into bnoieh:opbnb-develop-perf-trace Oct 11, 2024
1 of 2 checks passed
bnoieh pushed a commit that referenced this pull request Oct 11, 2024
* optimize p2p broadcasting: send tx directly to static nodes

* fix some comments

---------

Co-authored-by: Owen <103096885+owen-reorg@users.noreply.github.com>
Co-authored-by: andyzhang2023 <andyzhang2023@gmail.com>
bnoieh added a commit that referenced this pull request Dec 27, 2024
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.

3 participants