-
Notifications
You must be signed in to change notification settings - Fork 232
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-transactions: optimize retry pool #31
base: master
Are you sure you want to change the base?
send-transactions: optimize retry pool #31
Conversation
Looks like this one needs a rebase to fixup some whitespace lint. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #31 +/- ##
=========================================
- Coverage 81.9% 81.9% -0.1%
=========================================
Files 836 836
Lines 226629 226634 +5
=========================================
+ Hits 185688 185690 +2
- Misses 40941 40944 +3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -602,7 +628,8 @@ impl SendTransactionService { | |||
) -> ProcessTransactionsResult { | |||
let mut result = ProcessTransactionsResult::default(); | |||
|
|||
let mut batched_transactions = HashSet::new(); | |||
let mut batched_transactions = Vec::new(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think hashset was used to have unique transaction, could you clarify why it is not needed? Are they already filtered here by construction?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
transactions already unique because filled from transactions
object that is HashMap
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch
generally good changes, i don't understand some minor details (see questions in the comments) |
1e6a6fc
to
c7c05af
Compare
updated with fixes |
Moved from solana-labs#35081
Problem
Transactions not included in the retry pool on full utilization
Summary of Changes
last_sent_time
inTransactionInfo