Skip to content
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

feat: Support txpool.locals in txpool.cli #5971

Merged
merged 5 commits into from
Jan 9, 2024

Conversation

supernovahs
Copy link
Contributor

@supernovahs supernovahs commented Jan 8, 2024

closes #5540

@mattsse mattsse added the A-tx-pool Related to the transaction mempool label Jan 8, 2024
crates/transaction-pool/src/config.rs Outdated Show resolved Hide resolved
crates/transaction-pool/src/config.rs Outdated Show resolved Hide resolved
Comment on lines 1256 to 1259
if !transaction.origin.is_local() ||
self.local_transactions_config.no_local_exemptions() ||
self.local_transactions_config
.contains_local_address(transaction.transaction.sender())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I want to move these checks to a function in LocalTransactionConfig that accepts an Origin and then returns true if it is considered local

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, but still figuring the failing test

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

the issue was in the is_local check

@supernovahs
Copy link
Contributor Author

thanks

@mattsse mattsse added this pull request to the merge queue Jan 9, 2024
Merged via the queue into paradigmxyz:main with commit 7cd659f Jan 9, 2024
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tx-pool Related to the transaction mempool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add --txpool.locals Vec address to txpool cli args
2 participants