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

Feature Request: distinguish a tx order comes from the mempool or rpc_server #122

Open
nick199910 opened this issue Aug 15, 2024 · 0 comments
Labels
A-pool Area dealing with the memory pool and management of txns enhancement New feature or request

Comments

@nick199910
Copy link

Problem Statement
We need an easy way to distinguish whether a transaction order comes from the mempool or the RPC server. Our build algorithm relies on this distinction, but currently, there's no straightforward method to determine the source.
Current Situation

Transaction orders can come from two sources: mempool and RPC server
The build algorithm requires knowing the source of the transaction order
There's no clear mechanism to identify the source of each transaction order

Desired Outcome
A reliable and efficient method to determine whether a given transaction order originated from the mempool or the RPC server.
Potential Impact
Implementing this distinction will:

Improve the accuracy of our build algorithm
Enhance our ability to process transactions appropriately based on their source
Potentially optimize performance by tailoring our handling based on the transaction source

Possible Approaches (To Be Discussed)

Add a flag or metadata to transaction orders indicating their source
Implement a tracking system within the software to log the origin of each transaction order
Analyze characteristics of the transaction orders that might inherently differ between mempool and RPC server sources

@ferranbt ferranbt added enhancement New feature or request A-pool Area dealing with the memory pool and management of txns labels Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-pool Area dealing with the memory pool and management of txns enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants