-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Reject too large transactions #558
Changes from 4 commits
b622f09
8c34f5a
1e8b0ef
b096c1b
d48fdba
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -111,7 +111,7 @@ impl<Hash, VEx, S, E> Pool<Hash, VEx, S, E> where | |
| let mut pool = self.pool.write(); | ||
| let mut results = Vec::with_capacity(hashes.len()); | ||
| for hash in hashes { | ||
| results.push(pool.remove(hash, is_valid)); | ||
| results.push(pool.remove(hash, !is_valid)); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure I follow this one. Why is it inverted here?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, maybe we should rename it then, since it's presently named
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So the composition looks like this: The code in polkadot transaction pool is fine it uses
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can see it now! I mistakingly assumed that |
||
| } | ||
| results | ||
| } | ||
|
|
||
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.
Hm was unable to find this!
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, I meant
polkadot-consensus.