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

chore: transaction pool overflow improvements #2473

Merged
merged 1 commit into from
May 15, 2023

Conversation

mfrankovi
Copy link
Contributor

With the current DAG and PBFT gas limit we are able to process about 400 transactions per second. Once the transaction pool is filled and some of the transactions are dropped on some of the nodes, those transactions might be included in some DAG block after the time to process full transactions pool. This would take (200000 transactions)/(400 transactions per second) which equals about 500 seconds. Because of this kTransactionOverflowTimeLimit is increased from 300 seconds to 600 seconds. This prevents malicious node exception for this cases while doing stress test on devnet.

Error log in TransactionManager::getBlockTransactions changed to info since there is a normal case when transactions could be missed. The actual error is logged in functions that invoke this one if needed for an actual error.

The recent limitations to dag and pbft gas limit significantly reduces the size of dag blocks. This makes dag syncing less performance extensive so reducing kDagSyncingLimit from 300 seconds to 60 seconds to allow more frequent dag syncing in case transactions are overflown and missing.

@mfrankovi mfrankovi force-pushed the trx_overflow_improvement branch from 4884f7e to 1acb3fe Compare May 10, 2023 14:07
@mfrankovi mfrankovi requested a review from MatusKysel May 11, 2023 10:27
@mfrankovi mfrankovi force-pushed the trx_overflow_improvement branch from 1acb3fe to 02765ac Compare May 15, 2023 12:57
@mfrankovi mfrankovi merged commit 45ae577 into develop May 15, 2023
@mfrankovi mfrankovi deleted the trx_overflow_improvement branch May 15, 2023 14:52
@taraxadeploy
Copy link
Collaborator

prnet cleaned-up successfully

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.

4 participants