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

Implement sending policy w/o calling pendingExtrinsics #25

Open
michalkucharczyk opened this issue Feb 25, 2025 · 0 comments
Open

Implement sending policy w/o calling pendingExtrinsics #25

michalkucharczyk opened this issue Feb 25, 2025 · 0 comments

Comments

@michalkucharczyk
Copy link
Owner

Currently the sending algorithm periodically checks the number of transactions in the pool using pendingExtrinsics call. This causes problems with RPC response size when the count of transactions in pool is significant.

The other sending policy could be implemented (like in stps):

  • ttxt can estimate how many transaction are in the pool for bestchain by checking the number of transaction included in the best block,
  • the number of the block shall be tracked - same height should not be accounted more than once,
  • it maybe require to send transaction in smaller chunks (e.g. 5 times per block), so the tool needs estimate (e.g. average) on how many transactions are included in the block. Once the best block is received the bigger/smaller chunk should be submitted.

There is no need for addtional parameter describing expected count of txs in the pool - send-threshold should be reused.

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

No branches or pull requests

1 participant