-
Notifications
You must be signed in to change notification settings - Fork 43
Fix mem leak and pending pool #6
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
Conversation
de9d8a5 to
dfecfbf
Compare
| Ok(()) | ||
| } | ||
|
|
||
| /// Caution: this test could be brittle to change because of queued pool checks |
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.
what queued pool checks here would make the tests brittle?
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.
there asserts
assert_eq!(
pool_content.queued.len(),
1,
"Queued pool should contain only 1 transaction"
);
If you add/remove transactions in the tests this assert will fail
| // to pending pool, because nonce gap would be fixed. | ||
| let mut queued_hash = None; | ||
| let mut pool_content = provider.txpool_content().await?; | ||
| if !pool_content.queued.is_empty() { |
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.
you shouldn't need the empty check here since you already have an assertion for the length of the queued transaction later
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 assert needed on the iteration zero, when we don't have any transaction in the pool
This will store hash that is inside pending pool in case we are on the 1+ iteration
|
Merged new reth in different branch |
|
reth on main, test in different pr |
π Summary
Rebase on latest reth to include all fixes (for pending pool and memory leak)
π‘ Motivation and Context
β I have completed the following steps:
make lintmake test