Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Fix quadratic iterations in transaction pool ready set #6256

Merged
merged 9 commits into from
Jun 10, 2020
1 change: 1 addition & 0 deletions client/transaction-pool/graph/src/ready.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ impl<Hash: hash::Hash + Eq, Ex> ReadySet<Hash, Ex> {
let deduced_bytes = val.as_ref().map(|val| val.transaction.transaction.bytes).unwrap_or(0);
if self.bytes < deduced_bytes {
log::warn!(
target: "txpool",
"Some consistent data in ready set limit, bytes = {} while removing tx of size {}",
NikVolf marked this conversation as resolved.
Show resolved Hide resolved
self.bytes,
deduced_bytes,
Expand Down