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

Reply to Request::MempoolTransactionIds with mempool content #2720

Merged
merged 10 commits into from
Sep 2, 2021

Conversation

oxarbitrage
Copy link
Contributor

Motivation

Now that we have a mempool we can start responding with it contents to some inbound messages.

Close #1083 when merged.

Solution

This is the easier message that responds with the ids available in the mempool. Most of the work is in the test.

Review

I used some code from other tests made by @jvff so i think it will be a good candidate to the an initial review. On the other hand as we are all in mempool pretty much anyone can review so feel free to send feedback.

Reviewer Checklist

  • Tests for the new code added

@mpguerra mpguerra requested a review from jvff September 1, 2021 10:40
jvff
jvff previously approved these changes Sep 1, 2021
Copy link
Contributor

@jvff jvff left a comment

Choose a reason for hiding this comment

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

Already looks good! I added a two small suggestions, but they're optional 👍

zebrad/src/components/mempool.rs Outdated Show resolved Hide resolved
zebrad/src/components/inbound/tests.rs Outdated Show resolved Hide resolved
@oxarbitrage
Copy link
Contributor Author

Thanks @jvff , this was supposed to be a draft PR but i submitted it late yesterday and didn't realized it ended up as a normal one. Anyway, will do your suggestions asap. Thanks again.

@oxarbitrage oxarbitrage requested a review from jvff September 1, 2021 20:44
Copy link
Contributor

@jvff jvff left a comment

Choose a reason for hiding this comment

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

Looks great! 🎉

@oxarbitrage oxarbitrage enabled auto-merge (squash) September 2, 2021 13:39
@oxarbitrage oxarbitrage merged commit 9c220af into ZcashFoundation:main Sep 2, 2021
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.

Send inbound MempoolTransactionIds requests to the mempool storage service
2 participants