-
Notifications
You must be signed in to change notification settings - Fork 344
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
v2.2: txview: run status and age checks on incoming transactions (backport of #4506) #4978
base: v2.2
Are you sure you want to change the base?
Conversation
(cherry picked from commit 54da9b2)
2435504
to
db41cc9
Compare
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.
Let's bake this on a node before recommending uptake by any clusters
/// Pushes a transaction id into the priority queue. If the queue is full, the lowest priority | ||
/// transaction will be dropped (removed from the queue and map). | ||
/// Returns `true` if a packet was dropped due to capacity limits. | ||
fn push_id_into_queue(&mut self, priority_id: TransactionPriorityId) -> bool; | ||
/// Pushes transaction ids into the priority queue. If the queue if full, | ||
/// the lowest priority transactions will be dropped (removed from the | ||
/// queue and map) **after** all ids have been pushed. | ||
/// To avoid allocating, the caller should not push more than | ||
/// [`EXTRA_CAPACITY`] ids in a call. | ||
/// Returns the number of dropped transactions. | ||
fn push_ids_into_queue( | ||
&mut self, | ||
priority_ids: impl Iterator<Item = TransactionPriorityId>, | ||
) -> usize; |
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 we could've got away without some of this refactor stuff for the bp-targeted changes
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.
This was necessary, lots of context in the original pr
Problem
view
transaction parsing option in banking stage does not run status/age checks before inserting transactions into the bufferSummary of Changes
Fixes #
This is an automatic backport of pull request #4506 done by [Mergify](https://mergify.com).