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

fix(scan): Fix the RPC tx fetching in the scanning results reader #8157

Merged
merged 2 commits into from
Jan 15, 2024

Conversation

upbqdn
Copy link
Member

@upbqdn upbqdn commented Jan 12, 2024

Motivation

Fix the scanning results reader since it started sending RPC requests that Zebra doesn't understand.

PR Author Checklist

  • Will the PR name make sense to users?
  • Does the PR have a priority label?
  • Is the documentation up to date?

Specifications

https://github.com/apoelstra/rust-jsonrpc/blob/master/CHANGELOG.md

Solution

We recently updated the jsonrpc dependency from 0.16 to 0.17. The former version used to implicitly send an array of params, even if a single param was passed to the request builder. The new version doesn't do that anymore, but Zebra expects an array, so this commit explicitly passes an array consisting of a single param to the request builder.

Reviewer Checklist

Check before approving the PR:

  • Does the PR scope match the ticket?
  • Are there enough tests to make sure it works? Do the tests cover the PR motivation?
  • Are all the PR blockers dealt with?
    PR blockers can be dealt with in new tickets or PRs.

And check the PR Author checklist is complete.

We recently updated the `jsonrpc` dependency from 0.16 to 0.17. The
former version used to implicitly send an array of params, even if a
single param was passed to the request builder. The new version doesn't
do that anymore, but Zebra expects an array, so this commit explicitly
passes an array consisting of a single param to the request builder.
@upbqdn upbqdn added A-rust Area: Updates to Rust code P-Medium ⚡ A-blockchain-scanner Area: Blockchain scanner of shielded transactions labels Jan 12, 2024
@upbqdn upbqdn self-assigned this Jan 12, 2024
@upbqdn upbqdn requested a review from a team as a code owner January 12, 2024 22:39
@upbqdn upbqdn requested review from oxarbitrage and removed request for a team January 12, 2024 22:39
Copy link
Contributor

@arya2 arya2 left a comment

Choose a reason for hiding this comment

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

Thank you!

@mergify mergify bot merged commit cbc2f81 into main Jan 15, 2024
127 checks passed
@mergify mergify bot deleted the fix-scan-reader branch January 15, 2024 18:27
@oxarbitrage oxarbitrage mentioned this pull request Jan 17, 2024
41 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-blockchain-scanner Area: Blockchain scanner of shielded transactions A-rust Area: Updates to Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants