-
Notifications
You must be signed in to change notification settings - Fork 86
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
Support empty block range end in getaddresstxids
calls.
#496
Conversation
Testing, found a problem because the zcashd Here an example that shows the problem. This mainnet taddr is a few years old and hasn't had any recent activity. The first three give the expected result.
|
Okay, yep, that looks like a zcashd bug. I can see how it's coming from the very weird implementation of https://github.com/zcash/zcash/blob/master/src/rpc/misc.cpp#L826-L852 |
I can fix that tonight, have a PR ready by tomorrow morning, if that's okay |
Okay, yeah, if you think you introduced this bug then fixing it would be helpful! :) |
Yes, I do remember saying at a meeting, "Bug, meet everyone; everyone, this is bug." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK aa60184
$ grpcurl -plaintext -d '{"address":"t1aY1Rc7rm5TRbXJzCxgtBhDeyN7q1bZWVm","range":{"start":{"height":997000},"end":{"height":997311}}}' localhost:9067 cash.z.wallet.sdk.rpc.CompactTxStreamer/GetTaddressTxids | jq '.height'
"997044"
"997074"
"997310"
$ grpcurl -plaintext -d '{"address":"t1aY1Rc7rm5TRbXJzCxgtBhDeyN7q1bZWVm","range":{"start":{"height":1086930}}}' localhost:9067 cash.z.wallet.sdk.rpc.CompactTxStreamer/GetTaddressTxids | jq '.height'
"1086930"
"1108150"
"1108168"
$ grpcurl -plaintext -d '{"address":"t1aY1Rc7rm5TRbXJzCxgtBhDeyN7q1bZWVm","range":{"start":{"height":1108149},"end":{"height":99999999}}}' localhost:9067 cash.z.wallet.sdk.rpc.CompactTxStreamer/GetTaddressTxids | jq '.height'
"1108150"
"1108168"
$ ###### this will search the full chain (just count up the results this time)
$ grpcurl -plaintext -d '{"address":"t1aY1Rc7rm5TRbXJzCxgtBhDeyN7q1bZWVm","range":{"start":{"height":0}}}' localhost:9067 cash.z.wallet.sdk.rpc.CompactTxStreamer/GetTaddressTxids | jq '.height' | wc -l
37
$
@nuttycom - I just discovered that As is, won't lightwalletd not work with
Of these, I think the third (modify But I want to make sure from you, Kris, that this is a real problem if people try to use |
Please ensure this checklist is followed for any pull requests for this repo. This checklist must be checked by both the PR creator and by anyone who reviews the PR.
As a note, all CI tests need to be passing and all appropriate code reviews need to be done before this PR can be merged