-
Notifications
You must be signed in to change notification settings - Fork 2.2k
feat(txpool): handle more simulated scenarios in test_utils/pool.rs #20138
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
|
@mattsse this is still missing dynamic promotion tests, following previous state, but i think the foundation should be working the goal now is to use tracked state to trigger promotions programatically wdyt |
mattsse
left a comment
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.
cool, yep, this lgtm
|
we should handle these better in the future but i think its a good improvement for now PoolErrorKind::SpammerExceededCapacity(_) |
PoolErrorKind::ReplacementUnderpriced => return, |
mattsse
left a comment
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.
cool
ScenarioType::HigherNoncewith unit testScenarioType::BelowBaseFeewith unit testMockPool::default()created a pool withpending_basefee = MIN_PROTOCOL_BASE_FEEand it wasn't matching the simulation'sbase_feeso also addedcreate_pool()to align simulation'sbase_feewith pool'spending_basefee.ScenarioType::FillNonceGapwith unit testsender, now we usesenderinwith_sender