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

bug: get_tree_state fails at sapling activation height + 0 and +1 #8471

Closed
1 of 4 tasks
AArnott opened this issue Apr 28, 2024 · 0 comments · Fixed by #8533
Closed
1 of 4 tasks

bug: get_tree_state fails at sapling activation height + 0 and +1 #8471

AArnott opened this issue Apr 28, 2024 · 0 comments · Fixed by #8533
Assignees
Labels
A-rpc Area: Remote Procedure Call interfaces C-bug Category: This is a bug I-usability Zebra is hard to understand or use rust Pull requests that update Rust code

Comments

@AArnott
Copy link
Contributor

AArnott commented Apr 28, 2024

What happened?

I called the get_tree_state gRPC function to my zebra-backed litewalletd server.

I expected to see this happen:

419200 is the sapling activation height, so I would expect that block to work. It's odd that 419202 works, but not 419201.

Instead, this happened:

The litewalletd eturns this error when I use 419200 or 419201 as the birthday height:

status: Unknown, message: "zcashd did not return treestate", details: [], metadata: MetadataMap { headers: {"content-type": "application/grpc"} }

What were you doing when the issue happened?

Exploratory testing of a wallet.

Zebra logs

No response

Zebra Version

1.6.1

Which operating systems does the issue happen on?

  • Linux
  • macOS
  • Windows
  • Other OS

OS details

Ubuntu 22.04.1

Additional information

@str4d diagnosed this:

Those first two blocks contained no Sapling notes IIRC, so the tree is empty. This is a bug in Zebra, because it should be returning the entry TreeState in that case

@AArnott AArnott added C-bug Category: This is a bug S-needs-triage Status: A bug report needs triage labels Apr 28, 2024
@github-project-automation github-project-automation bot moved this to New in Zebra Apr 28, 2024
@mpguerra mpguerra moved this from New to Sprint Backlog in Zebra Apr 29, 2024
@upbqdn upbqdn self-assigned this May 14, 2024
@upbqdn upbqdn added I-usability Zebra is hard to understand or use A-rpc Area: Remote Procedure Call interfaces rust Pull requests that update Rust code and removed S-needs-triage Status: A bug report needs triage labels May 14, 2024
@mergify mergify bot closed this as completed in #8533 May 22, 2024
@github-project-automation github-project-automation bot moved this from Sprint Backlog to Done in Zebra May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rpc Area: Remote Procedure Call interfaces C-bug Category: This is a bug I-usability Zebra is hard to understand or use rust Pull requests that update Rust code
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants