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

Send transaction in batches #1910

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

bzawisto
Copy link
Contributor

@bzawisto bzawisto commented Nov 27, 2024

Transactions are not immediately broadcast after being received from API but added to a new vector instead.
Mempool is regularly polled for anything in the batch and, if criteria is met (chosen arbitrarily), transactions are broadcast to other peers.

There's a new timer - the old one wasn't kicking out frequently (and if the traffic was stable - never).

@bzawisto bzawisto linked an issue Nov 27, 2024 that may be closed by this pull request
zilliqa/src/pool.rs Outdated Show resolved Hide resolved
@JamesHinshelwood
Copy link
Contributor

This adds some complexity in the mempool and node that makes me worry a bit. Before we decide on merging this, please could we do some testing to prove that batching NewTransactions provides a meaningful speed-up over sending messages individually?

zilliqa/src/pool.rs Outdated Show resolved Hide resolved
@bzawisto bzawisto requested a review from shawn-zil December 3, 2024 09:49
@JamesHinshelwood
Copy link
Contributor

Last I recall, we were testing the difference this made in a test network. Did we get any results?

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.

Introduce batching mechanism for NewTransaction messages
3 participants