This repository was archived by the owner on Jan 22, 2025. It is now read-only.
This repository was archived by the owner on Jan 22, 2025. It is now read-only.
SendTransactionService sends in random order #35134
Open
Description
Problem
- SendTransactionService is the primary way user transactions get sent from RPC to leader
- SendTransactionService does not consider transaction priority at all in the sending order
or in the dropping order when the "queue" is full. It is simply done randomly. - Random order incentivizes spamming multiple RPCs in hopes to randomly get to the top of their retry map
Proposed Solution
- SendTransactionService should have some sort of priority-queue that we use to drop lowest priority transactions, and send/retry transactions with higher priority first.
- Because we want to consider priority, we should be reasonably sure txs can pay for fees. We already load and check nonce-accounts, it seems reasonable we could load and check fee-payer balance.
Metadata
Metadata
Assignees
Labels
No labels