Skip to content

Conversation

@SozinM
Copy link
Collaborator

@SozinM SozinM commented May 12, 2025

πŸ“ Summary

Rebase on latest reth to include all fixes (for pending pool and memory leak)

πŸ’‘ Motivation and Context


βœ… I have completed the following steps:

  • Run make lint
  • Run make test
  • Added tests (if applicable)

Ok(())
}

/// Caution: this test could be brittle to change because of queued pool checks
Copy link
Collaborator

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?

Copy link
Collaborator Author

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() {
Copy link
Collaborator

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

Copy link
Collaborator Author

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

@SozinM
Copy link
Collaborator Author

SozinM commented May 21, 2025

Merged new reth in different branch

@SozinM SozinM closed this May 21, 2025
@SozinM SozinM deleted the msozin/mem-leak-fix branch May 21, 2025 11:21
@SozinM SozinM restored the msozin/mem-leak-fix branch May 21, 2025 11:21
@SozinM SozinM reopened this May 21, 2025
@SozinM
Copy link
Collaborator Author

SozinM commented May 23, 2025

reth on main, test in different pr

@SozinM SozinM closed this May 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants