Skip to content

Implement sending policy w/o calling pendingExtrinsics #25

Description

@michalkucharczyk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions