-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Add a full node RPC endpoint, get_mempool_item_by_coin_name #15625
Add a full node RPC endpoint, get_mempool_item_by_coin_name #15625
Conversation
Wow - thank you! |
Error: The following new issues have been introduced:
|
Easy enough to add a test to test the Exception case on line 747 I suspect the test code can't trigger the |
Hey there! I know I was the one who originally opened an issue, but it seems this endpoint needs to be changed based on #13799. From my understanding, multiple mempool items can now exist that contain the same CoinSpend. I would make the endpoint return a list of those, and name it |
@emlowe good suggestions. I update the tests and add the exception test (i.e., line 747). |
@Yakuhito That was my original implementation 😄. Since 1.8.2 allows multiple mempool items with the same coin id now, I agree that we should update the RPC to return a list as well as its name to @emlowe is it fine to just use this PR or you prefer closing this one and re-open the new one? |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Use this #16019 instead. |
Purpose:
Implement a new endpoint to get mempool item by a coin name mentioned in #14810.
Testing Notes:
pytest
tests/core/test_full_node_rpc/test_coin_name_not_found_in_mempool
tests/core/test_full_node_rpc/test_coin_name_found_in_mempool
manual
found
not found